MCPcopy
hub / github.com/django/django / get_prep_value

Method get_prep_value

django/db/models/fields/__init__.py:1030–1034  ·  view source on GitHub ↗

Perform preliminary non-db specific value checks and conversions.

(self, value)

Source from the content-addressed store, hash-verified

1028 return getattr(model_instance, self.attname)
1029
1030 def get_prep_value(self, value):
1031 """Perform preliminary non-db specific value checks and conversions."""
1032 if isinstance(value, Promise):
1033 value = value._proxy____cast()
1034 return value
1035
1036 def get_db_prep_value(self, value, connection, prepared=False):
1037 """

Callers 15

get_db_prep_valueMethod · 0.95
get_prep_lookupMethod · 0.45
get_prep_lookupMethod · 0.45
set_baseMethod · 0.45
_get_target_idsMethod · 0.45
get_prep_lookupMethod · 0.45
get_prep_lookupMethod · 0.45
get_prep_valueMethod · 0.45
get_prep_valueMethod · 0.45
get_prep_valueMethod · 0.45
get_prep_valueMethod · 0.45
get_prep_valueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected