mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #27463 -- Fixed E741 flake8 warnings.
This commit is contained in:
committed by
Tim Graham
parent
c7bfcd2f37
commit
0a63ef3f61
@@ -129,9 +129,9 @@ class MigrationLoader(object):
|
||||
"Returns the migration(s) which match the given app label and name _prefix_"
|
||||
# Do the search
|
||||
results = []
|
||||
for l, n in self.disk_migrations:
|
||||
if l == app_label and n.startswith(name_prefix):
|
||||
results.append((l, n))
|
||||
for migration_app_label, migration_name in self.disk_migrations:
|
||||
if migration_app_label == app_label and migration_name.startswith(name_prefix):
|
||||
results.append((migration_app_label, migration_name))
|
||||
if len(results) > 1:
|
||||
raise AmbiguityError(
|
||||
"There is more than one migration for '%s' with the prefix '%s'" % (app_label, name_prefix)
|
||||
|
||||
Reference in New Issue
Block a user