1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[1.7.x] Fixed #23956 -- Fixed migration creation for multiple table inheritance

Backport of 44927ba817 from master
This commit is contained in:
Markus Holtermann
2014-12-11 17:52:42 +01:00
committed by Tim Graham
parent 491bf20d19
commit f446acf8bb
3 changed files with 28 additions and 1 deletions

View File

@@ -471,7 +471,7 @@ class MigrationAutodetector(object):
if field.rel.to:
if field.primary_key:
primary_key_rel = field.rel.to
else:
elif not field.rel.parent_link:
related_fields[field.name] = field
# through will be none on M2Ms on swapped-out models;
# we can treat lack of through as auto_created=True, though.