MCPcopy
hub / github.com/django/django / is_registered

Method is_registered

django/contrib/admin/sites.py:164–168  ·  view source on GitHub ↗

Check if a model class is registered with this `AdminSite`.

(self, model)

Source from the content-addressed store, hash-verified

162 del self._registry[model]
163
164 def is_registered(self, model):
165 """
166 Check if a model class is registered with this `AdminSite`.
167 """
168 return model in self._registry
169
170 def get_model_admin(self, model):
171 try:

Callers 11

registerMethod · 0.95
unregisterMethod · 0.95
__init__Method · 0.80
format_callbackFunction · 0.80
get_contextMethod · 0.80
get_contextMethod · 0.80
__init__Method · 0.80
tearDownMethod · 0.80
checkMethod · 0.80

Calls

no outgoing calls

Tested by 4

tearDownMethod · 0.64
checkMethod · 0.64