diff options
| author | Georgi Yanchev <georgi-yanchev@users.noreply.github.com> | 2025-11-18 08:10:25 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-18 08:10:25 -0500 |
| commit | b07298a73a8d444b3618aad8005055bee5ead8cb (patch) | |
| tree | 0f984a336e427f0ca641227b822e7d0b72eab205 /django/db/migrations/executor.py | |
| parent | 3c005b5f79bf6d71f3f4c3692ed670e1722b0fb6 (diff) | |
Fixed #36141 -- Checked for applied replaced migrations recursively.
Regression in 64b1ac7292c72d3551b2ad70b2a78c8fe4af3249.
Diffstat (limited to 'django/db/migrations/executor.py')
| -rw-r--r-- | django/db/migrations/executor.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/db/migrations/executor.py b/django/db/migrations/executor.py index 1ad7d0c18c..074d7b2d28 100644 --- a/django/db/migrations/executor.py +++ b/django/db/migrations/executor.py @@ -304,8 +304,7 @@ class MigrationExecutor: """ applied = self.recorder.applied_migrations() for key, migration in self.loader.replacements.items(): - all_applied = all(m in applied for m in migration.replaces) - if all_applied and key not in applied: + if key not in applied and self.loader.all_replaced_applied(key, applied): self.recorder.record_applied(*key) def detect_soft_applied(self, project_state, migration): |
