mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[1.7.x] Restore support for reading __latest__ for compatability
This commit is contained in:
parent
919d10e619
commit
e01c565b47
@ -136,7 +136,7 @@ class MigrationLoader(object):
|
|||||||
return self.disk_migrations[results[0]]
|
return self.disk_migrations[results[0]]
|
||||||
|
|
||||||
def check_key(self, key, current_app):
|
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
|
return key
|
||||||
# Special-case __first__, which means "the first migration" for
|
# Special-case __first__, which means "the first migration" for
|
||||||
# migrated apps, and is ignored for unmigrated apps. It allows
|
# migrated apps, and is ignored for unmigrated apps. It allows
|
||||||
|
Loading…
x
Reference in New Issue
Block a user