fix: tweak removal of document info order (#5624)
* fix: tweak removal of document info order * chore: add copyright line * chore: correct dependencies
This commit is contained in:
parent
c777f6f67d
commit
962af9feb3
|
@ -1,34 +1,20 @@
|
|||
# Copyright The IETF Trust 2023, All Rights Reserved
|
||||
from django.db import migrations, models
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
def forward(apps, schema_editor):
|
||||
migrations.RemoveField(
|
||||
model_name='dochistory',
|
||||
name='order',
|
||||
)
|
||||
|
||||
migrations.RemoveField(
|
||||
model_name='document',
|
||||
name='order',
|
||||
)
|
||||
|
||||
def reverse(apps, schema_editor):
|
||||
migrations.AddField(
|
||||
model_name='dochistory',
|
||||
name='order',
|
||||
field = models.IntegerField(default=1, blank=True),
|
||||
)
|
||||
|
||||
migrations.AddField(
|
||||
model_name='document',
|
||||
name='order',
|
||||
)
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("doc", "0002_auto_20230320_1222"),
|
||||
('doc', '0002_auto_20230320_1222'),
|
||||
]
|
||||
|
||||
operations = [migrations.RunPython(forward, reverse)]
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='dochistory',
|
||||
name='order',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='document',
|
||||
name='order',
|
||||
),
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue