[Fixed]-'ListSerializer' object is not callable

28👍

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
👤jpic

Leave a comment