fix --> otp check on tag distribution

This commit is contained in:
2026-02-07 16:42:08 +03:30
parent 3209dd2d31
commit ce9e45667f

View File

@@ -297,8 +297,8 @@ class TagAssignmentViewSet(BaseViewSet, SoftDeleteMixin, DynamicSearchMixin, vie
check_response = GeneralOTPViewSet().check_otp(request)
if check_response.status_code == 200:
return Response(check_response.status_code, status=status.HTTP_200_OK)
else:
return Response(check_response.status_code, status=status.HTTP_403_FORBIDDEN)
return Response(check_response.status_code, status=status.HTTP_403_FORBIDDEN)
return Response(status=status.HTTP_200_OK)
class AllocatedTagsViewSet(SoftDeleteMixin, viewsets.ModelViewSet):