|
| 1 | +# Generated by Django 4.2.7 on 2024-05-15 16:06 |
| 2 | + |
| 3 | +from django.db import migrations, models |
| 4 | +import django.db.models.deletion |
| 5 | +import wagtail.blocks |
| 6 | +import wagtail.fields |
| 7 | +import wagtail.images.blocks |
| 8 | + |
| 9 | + |
| 10 | +class Migration(migrations.Migration): |
| 11 | + |
| 12 | + initial = True |
| 13 | + |
| 14 | + dependencies = [ |
| 15 | + ('wagtailimages', '0025_alter_image_file_alter_rendition_file'), |
| 16 | + ('wagtailcore', '0089_log_entry_data_json_null_to_object'), |
| 17 | + ] |
| 18 | + |
| 19 | + operations = [ |
| 20 | + migrations.CreateModel( |
| 21 | + name='IndividualProgramPage', |
| 22 | + fields=[ |
| 23 | + ('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')), |
| 24 | + ('subtitle', wagtail.fields.RichTextField(blank=True)), |
| 25 | + ('intro', wagtail.fields.RichTextField(blank=True)), |
| 26 | + ('description', wagtail.fields.RichTextField(blank=True)), |
| 27 | + ('stats_title', models.CharField(default='Stats')), |
| 28 | + ('stats', wagtail.fields.StreamField([('stat_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock()), ('description', wagtail.blocks.RichTextBlock())]))], blank=True, null=True, use_json_field=True)), |
| 29 | + ('goals_title', models.CharField(default='Goals')), |
| 30 | + ('goals', wagtail.fields.StreamField([('goal_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock()), ('description', wagtail.blocks.RichTextBlock()), ('icon', wagtail.images.blocks.ImageChooserBlock())]))], blank=True, null=True, use_json_field=True)), |
| 31 | + ('projects_title', models.CharField(default='Projects')), |
| 32 | + ('partners_title', models.CharField(default='Meet Our Partners')), |
| 33 | + ('more_programs_title', models.CharField(default='More Programs')), |
| 34 | + ('header_image', models.ForeignKey(blank=True, help_text='Header image', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.image')), |
| 35 | + ('intro_image', models.ForeignKey(blank=True, help_text='Intro image', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.image')), |
| 36 | + ], |
| 37 | + options={ |
| 38 | + 'abstract': False, |
| 39 | + }, |
| 40 | + bases=('wagtailcore.page',), |
| 41 | + ), |
| 42 | + ] |
0 commit comments