MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / to_internal_value

Method to_internal_value

api/features/serializers.py:271–274  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

269 )
270
271 def to_internal_value(self, data): # type: ignore[no-untyped-def]
272 if data.get("initial_value") and not isinstance(data["initial_value"], str):
273 data["initial_value"] = str(data["initial_value"])
274 return super(CreateFeatureSerializer, self).to_internal_value(data)
275
276 def create(self, validated_data: dict) -> Feature: # type: ignore[type-arg]
277 project = self.context["project"]

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected