* refactor: Separately migrate DocAliases to rfc Documents The gap in numbering is intentional, another migration will be along shortly. * feat: Migrate docevents onto rfc documents * chore: Refining DocEvent migration (WIP) * chore: Move IANA Action state change docevents to rfc docs * chore: Fix typo * refactor: Eliminate "created" rfc state * chore: Leave "ballot set" comments on drafts
24 lines
630 B
Python
24 lines
630 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", "0004_alter_dochistory_ad_alter_dochistory_shepherd_and_more"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RunPython(forward),
|
|
]
|