P-103
This commit is contained in:
1 parent
4acd1cafda
commit
099f579128
3 files changed
+14
-2
No files matched your search
@@ -104,4 +104,10 @@ class VoteCreate(APIView):
|
||||
question=question
|
||||
).save()
|
||||
|
||||
return vote
|
||||
return vote
|
||||
|
||||
class GetDictEmployee(APIView):
|
||||
def get(self, request):
|
||||
employees = DictEmployee.objects.all()
|
||||
employees_serializer = DictEmployeeSerializer(employees, many=True).data
|
||||
return Response(employees_serializer)
|
||||
Reference in new issue
Block a user