Iam trying to find out if it is possible to post and patch in the same view using the generic api method in Django rest framework. I dont think there is any generic class that allows create and update altogether, can anyone tell me if the below configuration would allow me to use post and patch method in the same view.
class QuestionList(generics.updateAPIView, generics.CreateAPIView):
queryset = Question.objects.all()
serializer_class = QuestionSerializer