fix: IrreversibleError
This commit is contained in:
parent
63c3327c25
commit
64d4ce2b09
1 changed files with 5 additions and 1 deletions
|
@ -13,6 +13,10 @@ def forward_migration(apps, schema_editor):
|
||||||
Task.objects.create(basetask_ptr=base_task)
|
Task.objects.create(basetask_ptr=base_task)
|
||||||
|
|
||||||
|
|
||||||
|
def backward_migration(apps, schema_editor):
|
||||||
|
pass # fix IrreversibleError
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
atomic = False
|
atomic = False
|
||||||
|
|
||||||
|
@ -40,7 +44,7 @@ class Migration(migrations.Migration):
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
migrations.RunPython(forward_migration),
|
migrations.RunPython(forward_migration, backward_migration),
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name="attachment",
|
model_name="attachment",
|
||||||
name="task",
|
name="task",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue