112_Restructure_CompensationAction #115

Merged
mpeltriaux merged 12 commits from 112_Restructure_CompensationAction into master 2022-02-16 08:32:07 +01:00
Showing only changes of commit afb78fa670 - Show all commits

View File

@ -9,9 +9,12 @@ def migrate_actions(apps, schema_editor):
for action in actions:
action_type = action.action_type or []
action.action_type_tmp.set(action_type)
action.action_type_tmp.set([action_type])
action.save()
if not action.action_type_tmp.count() > 0:
raise ValueError("Migration of actions did not work! Stoped before data loss!")
class Migration(migrations.Migration):