MCPcopy
hub / github.com/django/django / _get_lookup

Method _get_lookup

django/db/models/query_utils.py:328–329  ·  view source on GitHub ↗
(self, lookup_name)

Source from the content-addressed store, hash-verified

326
327class RegisterLookupMixin:
328 def _get_lookup(self, lookup_name):
329 return self.get_lookups().get(lookup_name, None)
330
331 @functools.cache
332 def get_class_lookups(cls):

Callers 2

get_lookupMethod · 0.95
get_transformMethod · 0.95

Calls 2

get_lookupsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected