from django.utils.decorators import method_decorator
from django.views.decorators.csrf import csrf_exempt


class MyModelViewSet(viewsets.ModelViewSet):
    pass
How to unset csrf in modelviewset of django-rest-framework?