MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / get_model_reference

Method get_model_reference

tortoise/apps.py:307–308  ·  view source on GitHub ↗
(self, model: type[Model])

Source from the content-addressed store, hash-verified

305 related_model._meta.add_field(backward_relation_name, m2m_relation)
306
307 def get_model_reference(self, model: type[Model]) -> str:
308 return model._meta.full_name
309
310 def get_model(self, app_label: str, model_name: str) -> type[Model]:
311 try:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected