MCPcopy
hub / github.com/django/django / get_by_natural_key

Method get_by_natural_key

django/contrib/sites/models.py:75–76  ·  view source on GitHub ↗
(self, domain)

Source from the content-addressed store, hash-verified

73 SITE_CACHE = {}
74
75 def get_by_natural_key(self, domain):
76 return self.get(domain=domain)
77
78
79class Site(models.Model):

Callers 5

build_instanceFunction · 0.45
m2m_convertFunction · 0.45
deserialize_fk_valueFunction · 0.45
_handle_fk_field_nodeMethod · 0.45
m2m_convertMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected