MCPcopy
hub / github.com/django/django / get_db_prep_value

Method get_db_prep_value

django/db/models/fields/__init__.py:2794–2798  ·  view source on GitHub ↗
(self, value, connection, prepared=False)

Source from the content-addressed store, hash-verified

2792 return default
2793
2794 def get_db_prep_value(self, value, connection, prepared=False):
2795 value = super().get_db_prep_value(value, connection, prepared)
2796 if value is not None:
2797 return connection.Database.Binary(value)
2798 return value
2799
2800 def value_to_string(self, obj):
2801 """Binary data is serialized as base64"""

Callers

nothing calls this directly

Calls 1

get_db_prep_valueMethod · 0.45

Tested by

no test coverage detected