def dispatch(self, request, *args, **kwargs): return super(Sms, self).dispatch(request, *args, **kwargs) # @method_decorator(csrf_exempt) # here it doesn't work