diff options
Diffstat (limited to 'django/db/migrations/executor.py')
| -rw-r--r-- | django/db/migrations/executor.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/django/db/migrations/executor.py b/django/db/migrations/executor.py index 61b2b54f6c..1ad7d0c18c 100644 --- a/django/db/migrations/executor.py +++ b/django/db/migrations/executor.py @@ -21,7 +21,8 @@ class MigrationExecutor: def migration_plan(self, targets, clean_start=False): """ - Given a set of targets, return a list of (Migration instance, backwards?). + Given a set of targets, return a list of (Migration instance, + backwards?). """ plan = [] if clean_start: @@ -29,7 +30,8 @@ class MigrationExecutor: else: applied = dict(self.loader.applied_migrations) for target in targets: - # If the target is (app_label, None), that means unmigrate everything + # If the target is (app_label, None), that means unmigrate + # everything if target[1] is None: for root in self.loader.graph.root_nodes(): if root[0] == target[0]: |
