MCPcopy Index your code
hub / github.com/django-haystack/django-haystack / get_model_ct_tuple

Function get_model_ct_tuple

haystack/utils/__init__.py:66–73  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

64
65
66def get_model_ct_tuple(model):
67 # Deferred models should be identified as if they were the underlying model.
68 model_name = (
69 model._meta.concrete_model._meta.model_name
70 if hasattr(model, "_deferred") and model._deferred
71 else model._meta.model_name
72 )
73 return (model._meta.app_label, model_name)
74
75
76def get_model_ct(model):

Callers 4

prepare_templateMethod · 0.90
changelist_viewMethod · 0.90
searchMethod · 0.90
get_model_ctFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…