is_active test

This commit is contained in:
cja committed 2025-05-29 13:32:02 +03:00
1 parent 7ae3dbd5b3
commit c2cfdbbd2a
2 files changed
+12

No files matched your search

+1
View File
@@ -263,6 +263,7 @@ class TestingView(generics.ListCreateAPIView):
return Response({"status": "error", "message": str(e)}, status=400)
def put(self, request):
"""when removing testing from an employee"""
testing_id = request.data.get("id")
try:
testing = Testing.objects.get(id=testing_id)