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

Method get_serializer_context

api/environments/views.py:106–110  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

104 return EnvironmentSerializerWithMetadata
105
106 def get_serializer_context(self): # type: ignore[no-untyped-def]
107 context = super(EnvironmentViewSet, self).get_serializer_context()
108 if self.kwargs.get("api_key"):
109 context["environment"] = self.get_object()
110 return context
111
112 def get_queryset(self): # type: ignore[no-untyped-def]
113 if getattr(self, "swagger_fake_view", False):

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
get_objectMethod · 0.45

Tested by

no test coverage detected