33 lines
990 B
Python
33 lines
990 B
Python
# Copyright The IETF Trust 2018-2019, All Rights Reserved
|
|
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.11.13 on 2018-05-03 11:50
|
|
|
|
|
|
from __future__ import absolute_import, print_function, unicode_literals
|
|
|
|
from django.db import migrations
|
|
|
|
def forward(apps, schema_editor):
|
|
State = apps.get_model('doc','State')
|
|
for type_id in ('draft-stream-iab','draft-stream-ise','draft-stream-irtf'):
|
|
State.objects.create(type_id=type_id,
|
|
slug='repl',
|
|
name='Replaced',
|
|
desc='Replaced',
|
|
)
|
|
|
|
|
|
def reverse(apps, schema_editor):
|
|
State = apps.get_model('doc','State')
|
|
State.objects.filter(type_id__in=('draft-stream-iab','draft-stream-ise','draft-stream-irtf'), slug='repl').delete()
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('doc', '0003_auto_20180401_1231'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RunPython(forward,reverse)
|
|
]
|