MCPcopy
hub / github.com/django/django / get_transform

Method get_transform

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

Source from the content-addressed store, hash-verified

355 return found
356
357 def get_transform(self, lookup_name):
358 from django.db.models.lookups import Transform
359
360 found = self._get_lookup(lookup_name)
361 if found is None and hasattr(self, "output_field"):
362 return self.output_field.get_transform(lookup_name)
363 if found is not None and not issubclass(found, Transform):
364 return None
365 return found
366
367 @staticmethod
368 def merge_dicts(dicts):

Callers 1

replace_expressionsMethod · 0.45

Calls 1

_get_lookupMethod · 0.95

Tested by

no test coverage detected