def METHOD_NAME(self, request, *args, **kwargs):
    if self.is_atomic:
        with transaction.atomic():
            return self.wrapped_dispatch(request, *args, **kwargs)
    return self.wrapped_dispatch(request, *args, **kwargs)