chore [P-01]: подтянул бэк
This commit is contained in:
commit
c4c5926da0
1 file changed
+3
-4
@@ -253,11 +253,10 @@ class TestingView(generics.ListCreateAPIView):
|
|||||||
try:
|
try:
|
||||||
if test_id:
|
if test_id:
|
||||||
testings = Testing.objects.filter(test_id=test_id,
|
testings = Testing.objects.filter(test_id=test_id,
|
||||||
is_active=True,
|
is_active=True).select_related('user__user')
|
||||||
user=user).select_related('user__user')
|
|
||||||
else:
|
else:
|
||||||
testings = Testing.objects.filter(is_active=True,
|
testings = Testing.objects.filter(is_active=True
|
||||||
user=user).select_related('user__user')
|
).select_related('user__user')
|
||||||
|
|
||||||
serializer = self.get_serializer(testings, many=True)
|
serializer = self.get_serializer(testings, many=True)
|
||||||
return Response(serializer.data)
|
return Response(serializer.data)
|
||||||
|
|||||||
Reference in new issue
Block a user