-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: redundant word in banner for Legacy stream documents (#7207)
* fix: Remove redundant "stream stream" output fix: Change "Legacy stream" to "Legacy" chore: Add "stream" to stream.desc as needed Fixes: #6902 * chore: Remove unused stream_desc parameter The stream_desc key isn't used in template/doc/docuemnt_draft.html to don't pass it in nor compute it Fixes: #6902 * fix: migrate the legacy StreamName --------- Co-authored-by: Robert Sparks <[email protected]>
- Loading branch information
Showing
5 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Copyright The IETF Trust 2024, All Rights Reserved | ||
|
||
from django.db import migrations | ||
|
||
def forward(apps, schema_editor): | ||
StreamName = apps.get_model("name", "StreamName") | ||
StreamName.objects.filter(pk="legacy").update(desc="Legacy") | ||
|
||
def reverse(apps, schema_editor): | ||
StreamName = apps.get_model("name", "StreamName") | ||
StreamName.objects.filter(pk="legacy").update(desc="Legacy stream") | ||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("name", "0013_narrativeminutes"), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(forward, reverse) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters