get TestResultView
This commit is contained in:
1 parent
177f57db45
commit
4eccb3a7e8
1 file changed
+2
-1
@@ -339,7 +339,8 @@ class TestResultView(generics.ListCreateAPIView):
|
||||
# user = User.objects.get(username = "9966-00-125")
|
||||
test_id = request.GET.get('id')
|
||||
last_attempt = TestAttempt.objects.filter(testing__user=user,
|
||||
testing__test__id=test_id
|
||||
testing__test__id=test_id,
|
||||
testing__is_active=True,
|
||||
).order_by('-completion_date').first()
|
||||
answer_ids = TestResult.objects.filter(attempt=last_attempt
|
||||
).values_list('answer__id', flat=True)
|
||||
|
||||
Reference in new issue
Block a user