-
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.
- Loading branch information
Showing
4 changed files
with
41 additions
and
6 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
23 changes: 23 additions & 0 deletions
23
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 4.2.16 on 2024-12-12 19:43 | ||
|
||
from django.db import migrations | ||
import wagtail.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('cms', '0043_coursepage_custom_tab'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
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.'), | ||
), | ||
] |
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