mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #29897 -- Fixed autodetector's swappable MTI dependency resolution.
Thanks Steven Ganz for the detailed report.
This commit is contained in:
committed by
Tim Graham
parent
82353ef940
commit
d8e03fdeb9
@@ -345,6 +345,9 @@ class MigrationAutodetector:
|
||||
dependency_graph = {op: set() for op in ops}
|
||||
for op in ops:
|
||||
for dep in op._auto_deps:
|
||||
# Resolve intra-app dependencies to handle circular
|
||||
# references involving a swappable model.
|
||||
dep = self._resolve_dependency(dep)[0]
|
||||
if dep[0] == app_label:
|
||||
for op2 in ops:
|
||||
if self.check_dependency(op2, dep):
|
||||
|
||||
Reference in New Issue
Block a user