Make detect_soft_applied exit correctly on non-create migrations

This commit is contained in:
Andrew Godwin 2014-07-29 09:19:25 -07:00
parent f294f93a17
commit 5ed3834cbe
1 changed files with 2 additions and 0 deletions

View File

@ -144,6 +144,8 @@ class MigrationExecutor(object):
if model._meta.db_table not in self.connection.introspection.get_table_list(self.connection.cursor()):
return False
found_create_migration = True
else:
return False
# If we get this far and we found at least one CreateModel migration,
# the migration is considered implicitly applied.
return found_create_migration