My views.py of django app is as below,
class MemberCreate(generics.CreateAPIView):
queryset = members.objects.all()
serializer_class = MemberSerializer
permission_classes = (permissions.IsAdminUser,)
def create(self, serializer):
''' I wanted to do some stuff with serializer.data here '''
pass
Here in the above if I override the create function the return is failing with following error, Even If I don't do any thing and just write pass it is failing ,
AssertionError: Expected a `Response`, `HttpResponse` or `HttpStreamingResponse` to be returned from the view, but received a `<class 'NoneType'>`
create()
[github.com/encode/django-rest-framework/blob/master/… It may help if you need it. – Preposterous