forked from ietf-tools/www
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ietf-tools#96 Keeps top level menu and makes new editing features for…
… secondary menu only
- Loading branch information
1 parent
9a61df1
commit a72b41b
Showing
5 changed files
with
96 additions
and
29 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,20 @@ | ||
# Generated by Django 2.2.19 on 2021-11-05 00:19 | ||
|
||
from django.db import migrations, models | ||
|
||
def add_missing_menu(apps, schema_editor): | ||
MenuItem = apps.get_model('utils', 'MenuItem') | ||
Page = apps.get_model('wagtailcore', 'Page') | ||
page = Page.objects.filter(pk=42).first() | ||
if page: | ||
MenuItem.objects.create(page=page, sort_order=0, text='News & blog') | ||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('utils', '0002_auto_20211101_0113'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(add_missing_menu) | ||
] |
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