MCPcopy
hub / github.com/django/django / get_class_lookups

Method get_class_lookups

django/db/models/query_utils.py:332–336  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

330
331 @functools.cache
332 def get_class_lookups(cls):
333 class_lookups = [
334 parent.__dict__.get("class_lookups", {}) for parent in inspect.getmro(cls)
335 ]
336 return cls.merge_dicts(class_lookups)
337
338 def get_instance_lookups(self):
339 class_lookups = self.get_class_lookups()

Callers 1

get_instance_lookupsMethod · 0.95

Calls 2

merge_dictsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected