MCPcopy
hub / github.com/django/django / model_class

Method model_class

django/contrib/contenttypes/models.py:165–170  ·  view source on GitHub ↗

Return the model class for this type of content.

(self)

Source from the content-addressed store, hash-verified

163 )
164
165 def model_class(self):
166 """Return the model class for this type of content."""
167 try:
168 return apps.get_model(self.app_label, self.model)
169 except LookupError:
170 return None
171
172 def get_object_for_this_type(self, using=None, **kwargs):
173 """

Callers 9

nameMethod · 0.95
app_labeled_nameMethod · 0.95
gfk_keyMethod · 0.80
shortcutFunction · 0.80
handleMethod · 0.80
comp_funcMethod · 0.80
test_missing_modelMethod · 0.80

Calls 1

get_modelMethod · 0.45

Tested by 2

comp_funcMethod · 0.64
test_missing_modelMethod · 0.64