datatracker/ietf/doc/migrations/0026_add_draft_rfceditor_state.py
Henrik Levkowetz 726fcbf27d Removed all __future__ imports.
- Legacy-Id: 17391
2020-03-05 23:53:42 +00:00

25 lines
792 B
Python

# Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*-
from django.db import migrations
def forward(apps, schema_editor):
State = apps.get_model('doc','State')
State.objects.get_or_create(type_id='draft-rfceditor', slug='tooling-issue', name='TI',
desc='Tooling Issue; an update is needed to one or more of the tools in the publication pipeline before this document can be published')
def reverse(apps, schema_editor):
State = apps.get_model('doc','State')
State.objects.filter(type_id='draft-rfceditor', slug='tooling-issue').delete()
class Migration(migrations.Migration):
dependencies = [
('doc', '0025_ianaexpertdocevent'),
]
operations = [
migrations.RunPython(forward,reverse)
]