summaryrefslogtreecommitdiff
path: root/django/db/migrations/graph.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/db/migrations/graph.py')
-rw-r--r--django/db/migrations/graph.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/django/db/migrations/graph.py b/django/db/migrations/graph.py
index aba8259a7c..db8a52919c 100644
--- a/django/db/migrations/graph.py
+++ b/django/db/migrations/graph.py
@@ -367,9 +367,7 @@ class MigrationGraph:
plan = []
for node in nodes:
for migration in self.forwards_plan(node):
- if migration not in plan:
- if not at_end and migration in nodes:
- continue
+ if migration in plan or at_end or migration not in nodes:
plan.append(migration)
project_state = ProjectState(real_apps=real_apps)
for node in plan: