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

Method get_by_natural_key

django/contrib/auth/models.py:100–101  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

98 use_in_migrations = True
99
100 def get_by_natural_key(self, name):
101 return self.get(name=name)
102
103 async def aget_by_natural_key(self, name):
104 return await self.aget(name=name)

Callers 6

get_by_natural_keyMethod · 0.45
authenticateMethod · 0.45
authenticateMethod · 0.45
_get_userFunction · 0.45
groups_for_userFunction · 0.45
_validate_usernameMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected