Merge pull request #164 from KiwiTechLLC/sprint4

changes in add junior api
This commit is contained in:
Ankitajain-kiwi
2023-08-08 16:37:08 +05:30
committed by GitHub
3 changed files with 18 additions and 6 deletions

View File

@ -377,6 +377,6 @@ class GuardianListAPIView(viewsets.ModelViewSet):
# use GuardianDetailListSerializer serializer
serializer = GuardianDetailListSerializer(guardian_data, many=True)
return custom_response(None, serializer.data, response_status=status.HTTP_200_OK)
return custom_response({"status": GUARDIAN_CODE_STATUS['1']},response_status=status.HTTP_200_OK)
return custom_response({"status": GUARDIAN_CODE_STATUS[1][0]}, response_status=status.HTTP_200_OK)
except Exception as e:
return custom_error_response(str(e), response_status=status.HTTP_400_BAD_REQUEST)