MCPcopy Index your code
hub / github.com/Flagsmith/flagsmith / get_serializer_context

Method get_serializer_context

api/experimentation/views.py:229–232  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

227 lookup_url_kwarg = "experiment_id"
228
229 def get_serializer_context(self) -> dict[str, Any]:
230 context = super().get_serializer_context()
231 context["environment"] = self._get_environment()
232 return context
233
234 def get_serializer_class(self) -> type[BaseSerializer[Experiment]]:
235 if self.action == "retrieve":

Callers 1

Calls 1

_get_environmentMethod · 0.45

Tested by

no test coverage detected