0002_auto_20180829_1538.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Generated by Django 2.0.7 on 2018-08-29 19:38
  2. import wagtailcrx.blocks.base_blocks
  3. import wagtailcrx.fields
  4. from django.db import migrations, models
  5. import wagtail.contrib.table_block.blocks
  6. import wagtail.blocks
  7. import wagtail.fields
  8. import wagtail.documents.blocks
  9. import wagtail.images.blocks
  10. import wagtail.snippets.blocks
  11. class Migration(migrations.Migration):
  12. dependencies = [
  13. ('wagtailcrx', '0001_initial'),
  14. ]
  15. operations = [
  16. migrations.CreateModel(
  17. name='ContentWall',
  18. fields=[
  19. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  20. ('name', models.CharField(max_length=255, verbose_name='Name')),
  21. ('content', wagtailcrx.fields.CoderedStreamField([], blank=True, verbose_name='Content')),
  22. ('is_dismissible', models.BooleanField(default=True, verbose_name='Dismissible')),
  23. ('show_once', models.BooleanField(default=True, help_text='Do not show the content wall to the same user again after it has been closed.', verbose_name='Show once')),
  24. ],
  25. options={
  26. 'verbose_name': 'Content Wall',
  27. },
  28. ),
  29. migrations.AddField(
  30. model_name='coderedpage',
  31. name='content_walls',
  32. field=wagtailcrx.fields.CoderedStreamField([], blank=True, verbose_name='Content Walls'),
  33. ),
  34. ]