-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
- Loading branch information
1 parent
81bc6ae
commit af8e137
Showing
4 changed files
with
56 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,35 @@ | ||
# Generated by Django 4.2.16 on 2024-12-11 16:36 | ||
|
||
from django.db import migrations | ||
import wagtail.fields | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('cms', '0042_populate_weekly_hours'), | ||
("cms", "0042_populate_weekly_hours"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='coursepage', | ||
name='custom_tab', | ||
field=wagtail.fields.StreamField([('custom_tab', 2)], blank=True, block_lookup={0: ('wagtail.blocks.CharBlock', (), {'help': 'Displayed as the tab name', 'max_length': 50}), 1: ('wagtail.blocks.RichTextBlock', (), {}), 2: ('wagtail.blocks.StructBlock', [[('title', 0), ('content', 1)]], {})}, help_text='This is the custom tab for this course.'), | ||
model_name="coursepage", | ||
name="custom_tab", | ||
field=wagtail.fields.StreamField( | ||
[("custom_tab", 2)], | ||
blank=True, | ||
block_lookup={ | ||
0: ( | ||
"wagtail.blocks.CharBlock", | ||
(), | ||
{"help": "Displayed as the tab name", "max_length": 50}, | ||
), | ||
1: ("wagtail.blocks.RichTextBlock", (), {}), | ||
2: ( | ||
"wagtail.blocks.StructBlock", | ||
[[("title", 0), ("content", 1)]], | ||
{}, | ||
), | ||
}, | ||
help_text="This is the custom tab for this course.", | ||
), | ||
), | ||
] |
39 changes: 31 additions & 8 deletions
39
cms/migrations/0044_remove_coursepage_custom_tab_coursepage_custom_tabs.py
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 |
---|---|---|
@@ -1,23 +1,46 @@ | ||
# Generated by Django 4.2.16 on 2024-12-12 19:43 | ||
|
||
from django.db import migrations | ||
import wagtail.fields | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('cms', '0043_coursepage_custom_tab'), | ||
("cms", "0043_coursepage_custom_tab"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='coursepage', | ||
name='custom_tab', | ||
model_name="coursepage", | ||
name="custom_tab", | ||
), | ||
migrations.AddField( | ||
model_name='coursepage', | ||
name='custom_tabs', | ||
field=wagtail.fields.StreamField([('custom_tab', 3)], blank=True, block_lookup={0: ('wagtail.blocks.CharBlock', (), {'help': 'Displayed as the tab name', 'max_length': 50}), 1: ('wagtail.blocks.CharBlock', (), {'help': 'id of this element for scrolling on the page. One word or more connected with a dash.'}), 2: ('wagtail.blocks.RichTextBlock', (), {}), 3: ('wagtail.blocks.StructBlock', [[('title', 0), ('href_slug', 1), ('content', 2)]], {})}, help_text='This is the custom tab for this course.'), | ||
model_name="coursepage", | ||
name="custom_tabs", | ||
field=wagtail.fields.StreamField( | ||
[("custom_tab", 3)], | ||
blank=True, | ||
block_lookup={ | ||
0: ( | ||
"wagtail.blocks.CharBlock", | ||
(), | ||
{"help": "Displayed as the tab name", "max_length": 50}, | ||
), | ||
1: ( | ||
"wagtail.blocks.CharBlock", | ||
(), | ||
{ | ||
"help": "id of this element for scrolling on the page. One word or more connected with a dash." | ||
}, | ||
), | ||
2: ("wagtail.blocks.RichTextBlock", (), {}), | ||
3: ( | ||
"wagtail.blocks.StructBlock", | ||
[[("title", 0), ("href_slug", 1), ("content", 2)]], | ||
{}, | ||
), | ||
}, | ||
help_text="This is the custom tab for this course.", | ||
), | ||
), | ||
] |
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