Skip to content
Snippets Groups Projects
Commit 979c8362 authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Fix migrate_messages_with_visibility for live. Update python to 3.6.9.

parent 436a5e6b
No related branches found
No related tags found
No related merge requests found
...@@ -14,12 +14,13 @@ def forward_visibility_options(apps, schema_editor): ...@@ -14,12 +14,13 @@ def forward_visibility_options(apps, schema_editor):
except json.JSONDecodeError: except json.JSONDecodeError:
continue continue
new_message = { if 'internal' in message and 'public' in message:
TEAM: message['internal'], new_message = {
ALL: message['public'], TEAM: message['internal'],
} ALL: message['public'],
activity.message = json.dumps(new_message) }
activity.save() activity.message = json.dumps(new_message)
activity.save()
def backward_visibility_options(apps, schema_editor): def backward_visibility_options(apps, schema_editor):
......
python-3.6.8 python-3.6.9
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment