post testingview

This commit is contained in:
cja committed 2025-05-27 14:49:26 +03:00
1 parent 744f051490
commit d9c0f0203e
1 file changed
+2 -2
+2 -2
View File
@@ -214,8 +214,8 @@ class TestingView(generics.ListCreateAPIView):
"""create testing"""
try:
testing = Testing.objects.create(
user=User.objects.get(request.data["user_id"]),
test=Test.objects.get(request.data["test_id"]),
user=User.objects.get(user=DictEmployee.objects.get(id=request.data["user_id"])),
test=Test.objects.get(id=request.data["test_id"]),
completion_date=request.data["completion_date"],
test_passed=False,
)