Repository: liqd/a4-meinberlin

Issue:
Project block homepage
We no longer use project block on homepage and have deleted the template but you can still add block. We should consider moving it to the CC and recovering template as it is a useful block to have. 


Discussion:
@fuzzylogic2000 @MagdaN how do we do this? migrations appear to mess everything up
@phillimorland what exactly is the problem with the migrations?

Resolving patch:
diff --git a/meinberlin/apps/cms/migrations/0035_remove_project_block_from_homepage.py b/meinberlin/apps/cms/migrations/0035_remove_project_block_from_homepage.py
new file mode 100644
--- /dev/null
+++ b/meinberlin/apps/cms/migrations/0035_remove_project_block_from_homepage.py
@@ -0,0 +1,21 @@
+# Generated by Django 2.2.18 on 2021-02-18 10:01
+
+from django.db import migrations
+import wagtail.core.blocks
+import wagtail.core.fields
+import wagtail.images.blocks
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('meinberlin_cms', '0034_emailformfield_clean_name'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='homepage',
+            name='body',
+            field=wagtail.core.fields.StreamField([('paragraph', wagtail.core.blocks.RichTextBlock(template='meinberlin_cms/blocks/richtext_block.html')), ('call_to_action', wagtail.core.blocks.StructBlock([('body', wagtail.core.blocks.RichTextBlock()), ('link', wagtail.core.blocks.CharBlock()), ('link_text', wagtail.core.blocks.CharBlock(label='Link Text', max_length=50))])), ('image_call_to_action', wagtail.core.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock()), ('title', wagtail.core.blocks.CharBlock(max_length=80)), ('body', wagtail.core.blocks.RichTextBlock()), ('link', wagtail.core.blocks.CharBlock()), ('link_text', wagtail.core.blocks.CharBlock(label='Link Text', max_length=50))])), ('columns_text', wagtail.core.blocks.StructBlock([('columns_count', wagtail.core.blocks.ChoiceBlock(choices=[(2, 'Two columns'), (3, 'Three columns'), (4, 'Four columns')])), ('columns', wagtail.core.blocks.ListBlock(wagtail.core.blocks.RichTextBlock(label='Column body')))])), ('activities', wagtail.core.blocks.StructBlock([('heading', wagtail.core.blocks.CharBlock(label='Heading')), ('count', wagtail.core.blocks.IntegerBlock(default=5, label='Count'))])), ('accordion', wagtail.core.blocks.StructBlock([('title', wagtail.core.blocks.CharBlock()), ('body', wagtail.core.blocks.RichTextBlock(required=False))])), ('infographic', wagtail.core.blocks.StructBlock([('text_left', wagtail.core.blocks.CharBlock(max_length=50)), ('text_center', wagtail.core.blocks.CharBlock(max_length=50)), ('text_right', wagtail.core.blocks.CharBlock(max_length=50))])), ('map_teaser', wagtail.core.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock()), ('body', wagtail.core.blocks.RichTextBlock())]))]),
+        ),
+    ]
diff --git a/meinberlin/apps/cms/models/pages.py b/meinberlin/apps/cms/models/pages.py
--- a/meinberlin/apps/cms/models/pages.py
+++ b/meinberlin/apps/cms/models/pages.py
@@ -43,7 +43,6 @@ class HomePage(Page):
         ('call_to_action', cms_blocks.CallToActionBlock()),
         ('image_call_to_action', cms_blocks.ImageCallToActionBlock()),
         ('columns_text', cms_blocks.ColumnsBlock()),
-        ('projects', cms_blocks.ProjectsWrapperBlock()),
         ('activities', actions_blocks.PlatformActivityBlock()),
         ('accordion', cms_blocks.DocsBlock()),
         ('infographic', cms_blocks.InfographicBlock()),


Test patch: