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. I
The error is that it's trying to call the serializer_class, which is an instance of ListSerializer, instead of a clas.
Shouldn't this:
serializer_class = VoteSerializer(queryset, many=True)
Be that:
serializer_class = VoteSerializer