MCPcopy
hub / github.com/django/django / add_external_dependencies

Method add_external_dependencies

django/db/migrations/loader.py:211–222  ·  view source on GitHub ↗
(self, key, migration)

Source from the content-addressed store, hash-verified

209 self.graph.add_dependency(migration, key, parent, skip_validation=True)
210
211 def add_external_dependencies(self, key, migration):
212 for parent in migration.dependencies:
213 # Skip internal dependencies
214 if key[0] == parent[0]:
215 continue
216 parent = self.check_key(parent, key[0])
217 if parent is not None:
218 self.graph.add_dependency(migration, key, parent, skip_validation=True)
219 for child in migration.run_before:
220 child = self.check_key(child, key[0])
221 if child is not None:
222 self.graph.add_dependency(migration, child, key, skip_validation=True)
223
224 def _resolve_replaced_migration_keys(self, migration):
225 resolved_keys = set()

Callers 1

build_graphMethod · 0.95

Calls 2

check_keyMethod · 0.95
add_dependencyMethod · 0.45

Tested by

no test coverage detected