summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Godwin <andrew@aeracode.org>2014-07-25 09:43:54 -0700
committerAndrew Godwin <andrew@aeracode.org>2014-07-25 09:44:15 -0700
commite01c565b4777e1546caede74f3f7d5650e30e3ab (patch)
tree7bfeced5c7dbb96c7d22505b480b6224dc25b51e
parent919d10e619872b56a4d6bc91ccd031b90775a437 (diff)
[1.7.x] Restore support for reading __latest__ for compatability
-rw-r--r--django/db/migrations/loader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/migrations/loader.py b/django/db/migrations/loader.py
index 5c240ca739..5465f0ad18 100644
--- a/django/db/migrations/loader.py
+++ b/django/db/migrations/loader.py
@@ -136,7 +136,7 @@ class MigrationLoader(object):
return self.disk_migrations[results[0]]
def check_key(self, key, current_app):
- if key[1] != "__first__" or key in self.graph:
+ if (key[1] != "__first__" and key[1] != "__latest__") or key in self.graph:
return key
# Special-case __first__, which means "the first migration" for
# migrated apps, and is ignored for unmigrated apps. It allows