datatracker/ietf/name/migrations/0042_editorial_stream.py
Robert Sparks c89f7c89c5
feat: begin supporting the new rfc editor model (#3960)
* feat: restructure rfcedtype groups. add rpc, rswg, rsab.

* feat: show rfc editor groups on menu

* feat: add the editorial stream

* fix: repair broken html and extent dest coverage.

* chore: address Lars review comment

* chore: update copyright notices.
2022-05-20 12:22:17 -05:00

31 lines
789 B
Python

# Copyright The IETF Trust 2022 All Rights Reserved
from django.db import migrations
def forward(apps, schema_editor):
StreamName = apps.get_model('name', 'StreamName')
StreamName.objects.create(
slug = 'editorial',
name = 'Editorial',
desc = 'Editorial',
used = True,
order = 5,
)
StreamName.objects.filter(slug='legacy').update(order=6)
def reverse(apps, schema_editor):
StreamName = apps.get_model('name', 'StreamName')
StreamName.objects.filter(slug='editorial').delete()
StreamName.objects.filter(slug='legacy').update(order=5)
class Migration(migrations.Migration):
dependencies = [
('name', '0041_update_rfcedtyp'),
]
operations = [
migrations.RunPython(forward, reverse),
]