[WEB-5342] fix: update Issue query to use the correct manager in state checks #8060
This commit is contained in:
parent
bfea2c8572
commit
96bbbec588
2 changed files with 2 additions and 2 deletions
|
|
@ -233,7 +233,7 @@ class StateDetailAPIEndpoint(BaseAPIView):
|
||||||
)
|
)
|
||||||
|
|
||||||
# Check for any issues in the state
|
# 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:
|
if issue_exist:
|
||||||
return Response(
|
return Response(
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ class StateViewSet(BaseViewSet):
|
||||||
)
|
)
|
||||||
|
|
||||||
# Check for any issues in the state
|
# 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:
|
if issue_exist:
|
||||||
return Response(
|
return Response(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue