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

Method get_serializer_context

api/features/views.py:659–663  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

657 return FeatureStateSerializerCreate
658
659 def get_serializer_context(self): # type: ignore[no-untyped-def]
660 context = super().get_serializer_context()
661 if self.action in ["update", "create"]:
662 context["environment"] = self.get_environment_from_request() # type: ignore[no-untyped-call]
663 return context
664
665 def get_queryset(self): # type: ignore[no-untyped-def]
666 """

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected