diff --git a/publichealth/home/migrations/0004_auto_20170221_1728.py b/publichealth/home/migrations/0004_auto_20170221_1728.py new file mode 100644 index 0000000..7217474 --- /dev/null +++ b/publichealth/home/migrations/0004_auto_20170221_1728.py @@ -0,0 +1,84 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.5 on 2017-02-21 16:28 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion +import modelcluster.fields +import wagtail.wagtailcore.blocks +import wagtail.wagtailcore.fields +import wagtail.wagtailimages.blocks + + +class Migration(migrations.Migration): + + dependencies = [ + ('wagtailimages', '0016_deprecate_rendition_filter_relation'), + ('wagtailcore', '0032_add_bulk_delete_page_permission'), + ('home', '0003_auto_20161209_0655'), + ] + + operations = [ + migrations.CreateModel( + name='ArticleIndexPage', + 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')), + ('title_fr', models.CharField(default='', max_length=255)), + ], + options={ + 'abstract': False, + }, + bases=('wagtailcore.page',), + ), + migrations.CreateModel( + name='ArticlePage', + 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')), + ('title_fr', models.CharField(default='', max_length=255)), + ('date', models.DateField(verbose_name='Date')), + ('body_de', wagtail.wagtailcore.fields.StreamField((('heading', wagtail.wagtailcore.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.wagtailcore.blocks.RichTextBlock()), ('image', wagtail.wagtailimages.blocks.ImageChooserBlock())), blank=True, null=True)), + ('body_fr', wagtail.wagtailcore.fields.StreamField((('heading', wagtail.wagtailcore.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.wagtailcore.blocks.RichTextBlock()), ('image', wagtail.wagtailimages.blocks.ImageChooserBlock())), blank=True, null=True)), + ('feed_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')), + ], + options={ + 'abstract': False, + }, + bases=('wagtailcore.page',), + ), + migrations.CreateModel( + name='ArticleRelatedLink', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('sort_order', models.IntegerField(blank=True, editable=False, null=True)), + ('name', models.CharField(max_length=255)), + ('url', models.URLField()), + ('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='related_links', to='home.ArticlePage')), + ], + options={ + 'abstract': False, + 'ordering': ['sort_order'], + }, + ), + migrations.RemoveField( + model_name='homepage', + name='body_de', + ), + migrations.RemoveField( + model_name='homepage', + name='body_fr', + ), + migrations.RemoveField( + model_name='homepage', + name='title_fr', + ), + migrations.AddField( + model_name='homepage', + name='intro_de', + field=wagtail.wagtailcore.fields.RichTextField(default=''), + ), + migrations.AddField( + model_name='homepage', + name='intro_fr', + field=wagtail.wagtailcore.fields.RichTextField(default=''), + ), + ] diff --git a/publichealth/home/migrations/0005_auto_20170221_1748.py b/publichealth/home/migrations/0005_auto_20170221_1748.py new file mode 100644 index 0000000..7ea7e18 --- /dev/null +++ b/publichealth/home/migrations/0005_auto_20170221_1748.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.5 on 2017-02-21 16:48 +from __future__ import unicode_literals + +from django.db import migrations +import wagtail.wagtailcore.blocks +import wagtail.wagtailcore.fields +import wagtail.wagtailimages.blocks + + +class Migration(migrations.Migration): + + dependencies = [ + ('home', '0004_auto_20170221_1728'), + ] + + operations = [ + migrations.AddField( + model_name='homepage', + name='body_de', + field=wagtail.wagtailcore.fields.RichTextField(default=''), + ), + migrations.AddField( + model_name='homepage', + name='body_fr', + field=wagtail.wagtailcore.fields.RichTextField(default=''), + ), + migrations.AddField( + model_name='homepage', + name='infos_de', + field=wagtail.wagtailcore.fields.StreamField((('info', wagtail.wagtailcore.blocks.StructBlock((('title', wagtail.wagtailcore.blocks.CharBlock(required=True)), ('photo', wagtail.wagtailimages.blocks.ImageChooserBlock()), ('summary', wagtail.wagtailcore.blocks.RichTextBlock())))),), blank=True, null=True), + ), + migrations.AddField( + model_name='homepage', + name='infos_fr', + field=wagtail.wagtailcore.fields.StreamField((('info', wagtail.wagtailcore.blocks.StructBlock((('title', wagtail.wagtailcore.blocks.CharBlock(required=True)), ('photo', wagtail.wagtailimages.blocks.ImageChooserBlock()), ('summary', wagtail.wagtailcore.blocks.RichTextBlock())))),), blank=True, null=True), + ), + ] diff --git a/publichealth/home/migrations/0006_auto_20170221_1811.py b/publichealth/home/migrations/0006_auto_20170221_1811.py new file mode 100644 index 0000000..a99f1a3 --- /dev/null +++ b/publichealth/home/migrations/0006_auto_20170221_1811.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.5 on 2017-02-21 17:11 +from __future__ import unicode_literals + +from django.db import migrations +import wagtail.wagtailcore.blocks +import wagtail.wagtailcore.fields +import wagtail.wagtailimages.blocks + + +class Migration(migrations.Migration): + + dependencies = [ + ('home', '0005_auto_20170221_1748'), + ] + + operations = [ + migrations.AlterField( + model_name='homepage', + name='infos_de', + field=wagtail.wagtailcore.fields.StreamField((('info', wagtail.wagtailcore.blocks.StructBlock((('title', wagtail.wagtailcore.blocks.CharBlock(required=True)), ('photo', wagtail.wagtailimages.blocks.ImageChooserBlock()), ('summary', wagtail.wagtailcore.blocks.RichTextBlock()), ('action', wagtail.wagtailcore.blocks.CharBlock(required=True))))),), blank=True, null=True), + ), + migrations.AlterField( + model_name='homepage', + name='infos_fr', + field=wagtail.wagtailcore.fields.StreamField((('info', wagtail.wagtailcore.blocks.StructBlock((('title', wagtail.wagtailcore.blocks.CharBlock(required=True)), ('photo', wagtail.wagtailimages.blocks.ImageChooserBlock()), ('summary', wagtail.wagtailcore.blocks.RichTextBlock()), ('action', wagtail.wagtailcore.blocks.CharBlock(required=True))))),), blank=True, null=True), + ), + ]