From ad1e2c1998a2ca92221e97b0757e4e27bcc7e59d Mon Sep 17 00:00:00 2001 From: ChrFr Date: Wed, 11 Dec 2019 13:03:46 +0100 Subject: [PATCH] fixed conversion to fraction flows while migrating --- repair/apps/asmfa/migrations/0039_fractionflow.py | 2 -- .../apps/asmfa/migrations/0046_strategyfractionflow_process.py | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/repair/apps/asmfa/migrations/0039_fractionflow.py b/repair/apps/asmfa/migrations/0039_fractionflow.py index 078c6fcaa..e04c3d194 100644 --- a/repair/apps/asmfa/migrations/0039_fractionflow.py +++ b/repair/apps/asmfa/migrations/0039_fractionflow.py @@ -5,7 +5,6 @@ import repair.apps.login.models.bases import repair.apps.utils.protect_cascade -from repair.apps.asmfa.management.commands.translate import translate class Migration(migrations.Migration): @@ -44,5 +43,4 @@ class Migration(migrations.Migration): }, bases=(repair.apps.login.models.bases.GDSEModelMixin, models.Model), ), - migrations.RunPython(translate, migrations.RunPython.noop) ] diff --git a/repair/apps/asmfa/migrations/0046_strategyfractionflow_process.py b/repair/apps/asmfa/migrations/0046_strategyfractionflow_process.py index 2c9d27567..1680cf63d 100644 --- a/repair/apps/asmfa/migrations/0046_strategyfractionflow_process.py +++ b/repair/apps/asmfa/migrations/0046_strategyfractionflow_process.py @@ -2,6 +2,7 @@ from django.db import migrations, models import repair.apps.utils.protect_cascade +from repair.apps.asmfa.management.commands.translate import translate class Migration(migrations.Migration): @@ -16,4 +17,5 @@ class Migration(migrations.Migration): name='process', field=models.ForeignKey(null=True, on_delete=repair.apps.utils.protect_cascade.PROTECT_CASCADE, related_name='f_strategyfractionflowprocesses', to='asmfa.Process'), ), + migrations.RunPython(translate, migrations.RunPython.noop) ]