Summary: Add migration for renaming x3s3.3 to x3s3dot3
- Legacy-Id: 10113
This commit is contained in:
parent
51e96e3c12
commit
9545e620b8
22
ietf/group/migrations/0007_auto_20150930_0758.py
Normal file
22
ietf/group/migrations/0007_auto_20150930_0758.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
def rename_x3s3dot3_forwards(apps, schema_editor):
|
||||
Group = apps.get_model("group", "Group")
|
||||
Group.objects.filter(acronym="x3s3.3").update(acronym="x3s3dot3")
|
||||
|
||||
def rename_x3s3dot3_backwards(apps, schema_editor):
|
||||
Group = apps.get_model("group", "Group")
|
||||
Group.objects.filter(acronym="x3s3dot3").update(acronym="x3s3.3")
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('group', '0006_auto_20150718_0509'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(rename_x3s3dot3_forwards, rename_x3s3dot3_backwards)
|
||||
]
|
Loading…
Reference in a new issue