We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3d7fb0 commit 05e2da9Copy full SHA for 05e2da9
1 file changed
api/environments/identities/views.py
@@ -27,8 +27,8 @@ class IdentityViewSet(viewsets.ModelViewSet):
27
pagination_class = CustomPagination
28
29
def get_queryset(self):
30
- environment_api_key = self.kwargs["environment_api_key"]
31
- queryset = Identity.objects.filter(environment__api_key=environment_api_key)
+ environment = self.get_environment_from_request()
+ queryset = Identity.objects.filter(environment=environment)
32
33
search_query = self.request.query_params.get("q")
34
if search_query:
0 commit comments