datatracker/ietf/doc/migrations/0009_add_rfc_states.py
2023-11-17 14:56:21 -04:00

24 lines
595 B
Python

# Generated by Django 4.2.2 on 2023-06-14 20:57
from django.db import migrations
def forward(apps, schema_editor):
StateType = apps.get_model("doc", "StateType")
rfc_statetype, _ = StateType.objects.get_or_create(slug="rfc", label="State")
State = apps.get_model("doc", "State")
State.objects.get_or_create(
type=rfc_statetype, slug="published", name="Published", used=True, order=1
)
class Migration(migrations.Migration):
dependencies = [
("doc", "0008_alter_docevent_type"),
]
operations = [
migrations.RunPython(forward),
]