Skip to content
Permalink
Browse files

Modify roundtable labels in migration files.

  • Loading branch information...
jambonrose committed Oct 1, 2014
1 parent b6185b9 commit ead4be2f24b353a68fc79346e5858136df3545ad
@@ -4,7 +4,7 @@


def add_knight_data(apps, schema_editor):
Knight = apps.get_model('roundtable', 'Knight')
Knight = apps.get_model('rtable', 'Knight')
Knight.objects.bulk_create([
Knight(name='Arthur'),
Knight(name='Bedevere'),
@@ -18,14 +18,14 @@ def add_knight_data(apps, schema_editor):


def remove_knight_data(apps, schema_editor):
Knight = apps.get_model('roundtable', 'Knight')
Knight = apps.get_model('rtable', 'Knight')
Knight.objects.all().delete()


class Migration(migrations.Migration):

dependencies = [
('roundtable', '0001_initial'),
('rtable', '0001_initial'),
]

operations = [
@@ -7,7 +7,7 @@
class Migration(migrations.Migration):

dependencies = [
('roundtable', '0002_add_knight_data'),
('rtable', '0002_add_knight_data'),
]

operations = [
@@ -4,14 +4,14 @@
from django.db import models, migrations

def set_lancelot_traitor(apps, schema_editor):
Knight = apps.get_model('roundtable', 'Knight')
Knight = apps.get_model('rtable', 'Knight')
lancelot = Knight.objects.get(
name__iexact='Lancelot')
lancelot.traitor = True
lancelot.save()

def unset_lancelot_traitor(apps, schema_editor):
Knight = apps.get_model('roundtable', 'Knight')
Knight = apps.get_model('rtable', 'Knight')
lancelot = Knight.objects.get(
name__iexact='Lancelot')
lancelot.traitor = False
@@ -20,7 +20,7 @@ def unset_lancelot_traitor(apps, schema_editor):
class Migration(migrations.Migration):

dependencies = [
('roundtable', '0003_knight_traitor'),
('rtable', '0003_knight_traitor'),
]

operations = [

0 comments on commit ead4be2

Please sign in to comment.
You can’t perform that action at this time.