In setting viewset, I got an error AttributeError: 'function' object has no attribute 'get_extra_actions'

Published: 25/09/2018
In setting viewset, I got an error AttributeError: 'function' object has no attribute 'get_extra_actions'
Source: STACKOVERFLOW.COM

I'm learning DRF and feel confused a little now. I set up QuestionView and QuestionSerializer like this. views.py class QuestionView(viewsets.ModelViewSet) : queryset = models.Question.objects.all() serializer_class = QuestionSerializer def list(self, request, *args, **kwargs): serializer = QuestionSerializer(models.Question.objects.all()) return Response(serializer.data) serializer.py class Ques

Read more
Related news
Comment
FACEBOOK