P-117, добавление в результаты непрогол.польз
This commit is contained in:
1 parent
e491052872
commit
8d03b0dc98
1 file changed
+3
@@ -198,6 +198,9 @@ class GetResults(APIView):
|
||||
if answer['name'] in answers_names:
|
||||
answer['employee'] = employee_dict.get(int(answer['name']))
|
||||
|
||||
participants = Participant.objects.filter(vote=vote)
|
||||
serialized_data['nonvoting'] = ParticipantSerializer(participants, many=True).data
|
||||
|
||||
return Response(serialized_data)
|
||||
|
||||
from rest_framework.views import exception_handler
|
||||
|
||||
Reference in new issue
Block a user