* feat: support iab and iesg statements. Import iab statements. (#5895) * feat: infrastructure for statements doctype * chore: basic test framework * feat: basic statement document view * feat: show replaced statements * chore: black * fix: state help for statements * fix: cleanout non-relevant email expansions * feat: import iab statements, provide group statements tab * fix: guard against running import twice * feat: build redirect csv for iab statements * fix: set document state on import * feat: show published date on main doc view * feat: handle pdf statements * feat: create new and update statements * chore: copyright block updates * chore: remove flakes * chore: black * feat: add edit/new buttons for the secretariat * fix: address PR #5895 review comments * fix: pin pydantic until inflect catches up (#5901) (#5902) * chore: re-un-pin pydantic
22 lines
637 B
Python
22 lines
637 B
Python
# Copyright The IETF Trust 2023, All Rights Reserved
|
|
|
|
from django.db import migrations
|
|
|
|
def forward(apps, schema_editor):
|
|
DocTypeName = apps.get_model("name", "DocTypeName")
|
|
DocTypeName.objects.create(slug="statement", name="Statement", prefix="statement", desc="", used=True)
|
|
|
|
|
|
def reverse(apps, schema_editor):
|
|
DocTypeName = apps.get_model("name", "DocTypeName")
|
|
DocTypeName.objects.filter(slug="statement").delete()
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("name", "0003_populate_telechatagendasectionname"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RunPython(forward, reverse),
|
|
]
|