feat [P-227]: добавлена возможность видеть тех, кому назначили тест и убирать назначения
This commit is contained in:
1 parent
89a34ba499
commit
b66acab8f8
5 files changed
+161
-58
No files matched your search
@@ -232,9 +232,9 @@ class TestingView(generics.ListCreateAPIView):
|
||||
test_id = request.query_params.get('test_id')
|
||||
try:
|
||||
if test_id:
|
||||
testings = Testing.objects.filter(test_id=test_id)
|
||||
testings = Testing.objects.filter(test_id=test_id).select_related('user__user')
|
||||
else:
|
||||
testings = Testing.objects.all()
|
||||
testings = Testing.objects.all().select_related('user__user')
|
||||
|
||||
serializer = self.get_serializer(testings, many=True)
|
||||
return Response(serializer.data)
|
||||
|
||||
Reference in new issue
Block a user