[WEB-5342] fix: update Issue query to use the correct manager in state checks #8060

This commit is contained in:
Nikhil
2025-11-04 14:47:05 +05:30
committed by GitHub
parent bfea2c8572
commit 96bbbec588
2 changed files with 2 additions and 2 deletions

View File

@@ -233,7 +233,7 @@ class StateDetailAPIEndpoint(BaseAPIView):
)
# Check for any issues in the state
issue_exist = Issue.issue_objects.filter(state=state_id).exists()
issue_exist = Issue.objects.filter(state=state_id).exists()
if issue_exist:
return Response(

View File

@@ -117,7 +117,7 @@ class StateViewSet(BaseViewSet):
)
# Check for any issues in the state
issue_exist = Issue.issue_objects.filter(state=pk).exists()
issue_exist = Issue.objects.filter(state=pk).exists()
if issue_exist:
return Response(