MCPcopy
hub / github.com/django/django / get_model_a

Method get_model_a

tests/migrations/test_state.py:769–772  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

767 apps = new_apps
768
769 def get_model_a(state):
770 return [
771 mod for mod in state.apps.get_models() if mod._meta.model_name == "a"
772 ][0]
773
774 project_state = ProjectState()
775 project_state.add_model(ModelState.from_model(A))

Callers

nothing calls this directly

Calls 1

get_modelsMethod · 0.45

Tested by

no test coverage detected