Skip to content
Snippets Groups Projects
Verified Commit ab2f2d48 authored by Lukas Weichelt's avatar Lukas Weichelt
Browse files

Move migration to match master

parent e423aaf3
No related branches found
No related tags found
1 merge request!9Resolve "Move Organisation to Core"
Pipeline #149640 failed
......@@ -24,7 +24,7 @@ def migrate_legalentitys(apps, schema_editor):
corganisation_model = apps.get_model("core", "Organisation")
group_model = apps.get_model("core", "Group")
for i in vlegalentity_model.objects.all():
if type(i.related_group_id) == int:
if i.related_group_id:
rgid = i.related_group_id
corganisation_model.objects.create(
name=i.name,
......@@ -37,8 +37,8 @@ def migrate_legalentitys(apps, schema_editor):
class Migration(migrations.Migration):
dependencies = [
("core", "0049_create_organisation_model"),
("vereinsmeier", "0001_initial"),
("core", "0054_create_organisation_model"),
("vereinsmeier", "0002_add_managed_by_label"),
]
operations = [
......
......@@ -9,8 +9,8 @@ import djmoney.models.fields
class Migration(migrations.Migration):
dependencies = [
("core", "0049_create_organisation_model"),
("vereinsmeier", "0002_migrate_organisations_to_core"),
("core", "0054_create_organisation_model"),
("vereinsmeier", "0003_migrate_organisations_to_core"),
]
operations = [
......
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