diff --git a/openslides/motions/migrations/0004_auto_20160907_2343.py b/openslides/motions/migrations/0004_auto_20160907_2343.py index 646b7a191..34b3269bb 100644 --- a/openslides/motions/migrations/0004_auto_20160907_2343.py +++ b/openslides/motions/migrations/0004_auto_20160907_2343.py @@ -5,6 +5,8 @@ from __future__ import unicode_literals import django.db.models.deletion from django.db import migrations, models +from openslides.utils.autoupdate import inform_changed_data_receiver + def change_label_of_state(apps, schema_editor): """ @@ -27,6 +29,11 @@ def change_label_of_state(apps, schema_editor): state.action_word = 'Refer to committee' state.save() + # Reconnect autoupdate. + models.signals.post_save.connect( + inform_changed_data_receiver, + dispatch_uid='inform_changed_data_receiver') + def add_recommendation_labels(apps, schema_editor): """ diff --git a/openslides/users/migrations/0004_groups.py b/openslides/users/migrations/0004_groups.py index 262526b0d..66ff1bb5a 100644 --- a/openslides/users/migrations/0004_groups.py +++ b/openslides/users/migrations/0004_groups.py @@ -4,6 +4,8 @@ from __future__ import unicode_literals from django.db import migrations, models +from openslides.utils.autoupdate import inform_changed_data_receiver + def migrate_groups_and_user_permissions(apps, schema_editor): """ @@ -50,6 +52,11 @@ def migrate_groups_and_user_permissions(apps, schema_editor): for permission in group_registered.permissions.all(): group.permissions.add(permission) + # Reconnect autoupdate. + models.signals.post_save.connect( + inform_changed_data_receiver, + dispatch_uid='inform_changed_data_receiver') + class Migration(migrations.Migration):