MCPcopy
hub / github.com/django/django / value_to_string

Method value_to_string

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

Return a string value of this field from the passed obj. This is used by the serialization framework.

(self, obj)

Source from the content-addressed store, hash-verified

1125 ]
1126
1127 def value_to_string(self, obj):
1128 """
1129 Return a string value of this field from the passed obj.
1130 This is used by the serialization framework.
1131 """
1132 return str(self.value_from_object(obj))
1133
1134 @property
1135 def flatchoices(self):

Callers

nothing calls this directly

Calls 1

value_from_objectMethod · 0.95

Tested by

no test coverage detected