25 lines
632 B
Python
25 lines
632 B
Python
# Copyright The IETF Trust 2020, All Rights Reserved
|
|
|
|
from django.db import migrations
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('name', '0019_add_timeslottypename_private'),
|
|
]
|
|
|
|
def add_rescheduled_session_status_name(apps, schema_editor):
|
|
SessionStatusName = apps.get_model('name', 'SessionStatusName')
|
|
SessionStatusName.objects.get_or_create(
|
|
slug='resched',
|
|
name="Rescheduled",
|
|
)
|
|
|
|
def noop(apps, schema_editor):
|
|
pass
|
|
|
|
operations = [
|
|
migrations.RunPython(add_rescheduled_session_status_name, noop, elidable=True),
|
|
]
|