master #116

Merged
mpeltriaux merged 13 commits from master into 110_Biotope_codelists 2022-02-16 08:50:41 +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):