summaryrefslogtreecommitdiff
path: root/tests/schema
diff options
context:
space:
mode:
authorAndrew Godwin <andrew@aeracode.org>2013-12-11 14:19:05 +0000
committerAndrew Godwin <andrew@aeracode.org>2013-12-11 14:19:05 +0000
commit5db028affbffa2dc7a957fcf73401830b43bf540 (patch)
tree8d4286589ef14f7d5d654ce8185854eac701a661 /tests/schema
parentcee4fe73071b469edf118bec3a080ffca906d323 (diff)
Fix altering of SERIAL columns and InnoDB being picky about FK changes
Diffstat (limited to 'tests/schema')
-rw-r--r--tests/schema/tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/schema/tests.py b/tests/schema/tests.py
index d69e5387f1..66450956ef 100644
--- a/tests/schema/tests.py
+++ b/tests/schema/tests.py
@@ -636,6 +636,7 @@ class SchemaTests(TransactionTestCase):
# Alter to change the PK
new_field = SlugField(primary_key=True)
new_field.set_attributes_from_name("slug")
+ new_field.model = Tag
with connection.schema_editor() as editor:
editor.remove_field(Tag, Tag._meta.get_field_by_name("id")[0])
editor.alter_field(