-
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
1 parent
339c67b
commit c90007d
Showing
7 changed files
with
330 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
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,197 @@ | ||
# Generated by Django 3.2.16 on 2023-10-25 22:48 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import wagtail.core.blocks | ||
import wagtail.core.fields | ||
import wagtail.images.blocks | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("wagtailimages", "0023_add_choose_permissions"), | ||
("wagtailcore", "0066_collection_management_permissions"), | ||
("cms", "0035_rename_admissions_format_to_location"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="instructorssection", | ||
name="sections", | ||
field=wagtail.core.fields.StreamField( | ||
[ | ||
( | ||
"section", | ||
wagtail.core.blocks.StructBlock( | ||
[ | ||
( | ||
"heading", | ||
wagtail.core.blocks.CharBlock( | ||
help_text="The heading to display for this section on the page.", | ||
max_length=255, | ||
), | ||
), | ||
( | ||
"subhead", | ||
wagtail.core.blocks.RichTextBlock( | ||
help_text="The subhead to display for this section on the page." | ||
), | ||
), | ||
( | ||
"heading_singular", | ||
wagtail.core.blocks.CharBlock( | ||
help_text="Heading that will highlight the instructor or sponsor point.", | ||
max_length=100, | ||
), | ||
), | ||
( | ||
"members", | ||
wagtail.core.blocks.StreamBlock( | ||
[ | ||
( | ||
"member", | ||
wagtail.core.blocks.StructBlock( | ||
[ | ||
( | ||
"name", | ||
wagtail.core.blocks.CharBlock( | ||
help_text="Name of the instructor/sponsor.", | ||
max_length=100, | ||
), | ||
), | ||
( | ||
"image", | ||
wagtail.images.blocks.ImageChooserBlock( | ||
help_text="Profile image size must be at least 300x300 pixels." | ||
), | ||
), | ||
( | ||
"title", | ||
wagtail.core.blocks.CharBlock( | ||
help_text="A brief description about the instructor/sponsor.", | ||
max_length=255, | ||
), | ||
), | ||
] | ||
), | ||
) | ||
], | ||
help_text="The instructors to display in this section", | ||
), | ||
), | ||
] | ||
), | ||
) | ||
], | ||
help_text="The instructor to display in this section", | ||
), | ||
), | ||
migrations.CreateModel( | ||
name="SponsorsSection", | ||
fields=[ | ||
( | ||
"page_ptr", | ||
models.OneToOneField( | ||
auto_created=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
parent_link=True, | ||
primary_key=True, | ||
serialize=False, | ||
to="wagtailcore.page", | ||
), | ||
), | ||
( | ||
"heading", | ||
wagtail.core.fields.RichTextField( | ||
default="Sponsors", | ||
help_text="The heading to display on this section.", | ||
), | ||
), | ||
( | ||
"sections", | ||
wagtail.core.fields.StreamField( | ||
[ | ||
( | ||
"section", | ||
wagtail.core.blocks.StructBlock( | ||
[ | ||
( | ||
"heading", | ||
wagtail.core.blocks.CharBlock( | ||
help_text="The heading to display for this section on the page.", | ||
max_length=255, | ||
), | ||
), | ||
( | ||
"subhead", | ||
wagtail.core.blocks.RichTextBlock( | ||
help_text="The subhead to display for this section on the page." | ||
), | ||
), | ||
( | ||
"heading_singular", | ||
wagtail.core.blocks.CharBlock( | ||
help_text="Heading that will highlight the instructor or sponsor point.", | ||
max_length=100, | ||
), | ||
), | ||
( | ||
"sponsors", | ||
wagtail.core.blocks.StreamBlock( | ||
[ | ||
( | ||
"sponsor", | ||
wagtail.core.blocks.StructBlock( | ||
[ | ||
( | ||
"name", | ||
wagtail.core.blocks.CharBlock( | ||
help_text="Name of the instructor/sponsor.", | ||
max_length=100, | ||
), | ||
), | ||
( | ||
"image", | ||
wagtail.images.blocks.ImageChooserBlock( | ||
help_text="Profile image size must be at least 300x300 pixels." | ||
), | ||
), | ||
( | ||
"title", | ||
wagtail.core.blocks.CharBlock( | ||
help_text="A brief description about the instructor/sponsor.", | ||
max_length=255, | ||
), | ||
), | ||
] | ||
), | ||
) | ||
], | ||
help_text="The sponsors to display in this section", | ||
), | ||
), | ||
] | ||
), | ||
) | ||
], | ||
help_text="The sponsor to display in this section", | ||
), | ||
), | ||
( | ||
"banner_image", | ||
models.ForeignKey( | ||
help_text="Image that will display as a banner at the top of the section, must be at least 750x505 pixels.", | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name="+", | ||
to="wagtailimages.image", | ||
), | ||
), | ||
], | ||
options={ | ||
"abstract": False, | ||
}, | ||
bases=("wagtailcore.page",), | ||
), | ||
] |
Oops, something went wrong.