'ListSerializer' object is not callable
问题 I am trying to implement Django-Rest framework for a voting application with content_type objects. I tried using the rest-framework-generic-relations for serializers.py. It seems to me that the error might be within serializer.py / views.py, but I am new to this framework and would appreciate your help! views.py: class vote_detail(generics.RetrieveUpdateDestroyAPIView): queryset = VotedItem.objects.all() serializer_class = VoteSerializer(queryset, many=True) serializers.py: from rest