@@ -0,0 +1,806 @@
+# Generated by Django 2.2.24 on 2021-09-15 15:20%0A%0Afrom django.db import migrations%0A%0A%0Adef change_content_type(apps, schema_editor):%0A    Poll = apps.get_model('a4polls', 'Poll')%0A    Action = apps.get_model('a4actions', 'Action')%0A    ContentType = apps.get_model('contenttypes', 'ContentType')%0A    mb_poll_content_type = ContentType.objects.get(model='mbpoll')%0A    poll_content_type = ContentType.objects.get_for_model(Poll)%0A    actions = Action.objects.filter(target_content_type_id=mb_poll_content_type.id)%0A    for action in actions:%0A        action.target_content_type = poll_content_type%0A        action.save()%0A%0Aclass Migration(migrations.Migration):%0A%0A    dependencies = %5B%0A        ('meinberlin_polls', '0008_delete_mbpoll'),%0A    %5D%0A%0A    operations = %5B%0A        migrations.RunPython(change_content_type)%0A    %5D%0A

make sure actions have the new a4 poll as content type