* chore: remove unused setting * feat: initial import of iesg minutes * fix: let the meetings view show older iesg meetings * feat: iesg narrative minutes * feat: import bof coordination call minutes * wip: import commands for iesg appeals and statements * feat: import iesg statements. * feat: import iesg artifacts * feat: many fewer n+1 queries for the group meetings view * fix: restore chain of elifs in views_doc * fix: use self.stdout.write vs print in mgmt commands * fix: use replace instead of astimezone when appropriate * chore: refactor new migrations into one * fix: transcode some old files into utf8 * fix: repair overzealous replace * chore: black * fix: address minro review comments * fix: actually capture transcoding work * fix: handle multiple iesg statements on the same day * fix: better titles * feat: pill badge replaced statements * fix: consolodate source repos to one * feat: liberal markdown for secretariat controlled content * fix: handle (and clean) html narrative minutes * feat: scrub harder * fix: simplify and improve a scrubber * chore: reorder migrations
36 lines
899 B
Python
36 lines
899 B
Python
# Copyright The IETF Trust 2023, All Rights Reserved
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
def forward(apps, schema_editor):
|
|
DocTypeName = apps.get_model("name", "DocTypeName")
|
|
DocTypeName.objects.create(
|
|
slug="narrativeminutes",
|
|
name="Narrative Minutes",
|
|
desc="",
|
|
used=True,
|
|
order=0,
|
|
prefix="narrative-minutes",
|
|
)
|
|
|
|
|
|
def reverse(apps, schema_editor):
|
|
DocTypeName = apps.get_model("name", "DocTypeName")
|
|
DocTypeName.objects.filter(slug="narrativeminutes").delete()
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("name", "0012_adjust_important_dates"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AlterField(
|
|
model_name="doctypename",
|
|
name="prefix",
|
|
field=models.CharField(default="", max_length=32),
|
|
),
|
|
migrations.RunPython(forward, reverse),
|
|
]
|