Make migrations reversible
This commit is contained in:
parent
c45f0a65c8
commit
eb1eb54eba
|
|
@ -52,4 +52,6 @@ class Migration(migrations.Migration):
|
||||||
("core", "0002_delete_admindata"),
|
("core", "0002_delete_admindata"),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [migrations.RunPython(add_permissions)]
|
operations = [
|
||||||
|
migrations.RunPython(add_permissions, migrations.RunPython.noop),
|
||||||
|
]
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,10 @@ def delete_old_group(apps, schema_editor):
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
("core", "0003_auto_20230309_1714"),
|
("core", "0003_auto_20230309_1714"),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [migrations.RunPython(delete_old_group)]
|
operations = [
|
||||||
|
migrations.RunPython(delete_old_group, migrations.RunPython.noop),
|
||||||
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue