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

Method get_queryset

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

Source from the content-addressed store, hash-verified

825 permission_classes = [EnvironmentFeatureStatePermissions]
826
827 def get_queryset(self): # type: ignore[no-untyped-def]
828 queryset = super().get_queryset().filter(feature_segment=None) # type: ignore[no-untyped-call]
829
830 if "anyIdentity" in self.request.query_params:
831 # TODO: deprecate anyIdentity query parameter
832 return queryset.exclude(identity=None)
833 return queryset.filter(identity=None)
834
835 def get_serializer_class(self): # type: ignore[no-untyped-def]
836 if self.action == "create_new_version":

Callers

nothing calls this directly

Calls 1

get_querysetMethod · 0.45

Tested by

no test coverage detected