diff --git a/django/db/migrations/autodetector.py b/django/db/migrations/autodetector.py index 1bd4888c14..1020e3ccd9 100644 --- a/django/db/migrations/autodetector.py +++ b/django/db/migrations/autodetector.py @@ -446,11 +446,11 @@ class MigrationAutodetector(object): # Depend on the other end of the primary key if it's a relation if primary_key_rel: dependencies.append(( - primary_key_rel._meta.app_label, - primary_key_rel._meta.object_name, - None, - True - )) + primary_key_rel._meta.app_label, + primary_key_rel._meta.object_name, + None, + True + )) # Generate creation operation self.add_operation( app_label,