MCPcopy
hub / github.com/django/django / _model

Method _model

tests/model_meta/tests.py:31–33  ·  view source on GitHub ↗
(self, current_model, field)

Source from the content-addressed store, hash-verified

29 return tuple((f.name, m) for f, m in res)
30
31 def _model(self, current_model, field):
32 model = field.model._meta.concrete_model
33 return None if model == current_model else model
34
35 def _details(self, current_model, relation):
36 direct = isinstance(relation, (Field, GenericForeignKey))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected