MCPcopy Create free account
hub / github.com/intelowlproject/IntelOwl / to_python

Method to_python

api_app/data_model_manager/fields.py:14–18  ·  view source on GitHub ↗
(self, value: Any)

Source from the content-addressed store, hash-verified

12
13class LowercaseCharField(models.CharField):
14 def to_python(self, value: Any):
15 result = super().to_python(value)
16 if result and isinstance(result, str):
17 return result.lower()
18 return result

Callers

nothing calls this directly

Calls 1

to_pythonMethod · 0.45

Tested by

no test coverage detected