post testingview
This commit is contained in:
1 parent
744f051490
commit
d9c0f0203e
1 file changed
+2
-2
@@ -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,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user