docs: def enforce_csrf(self, request):
          """
          Enforce CSRF validation for session based authentication.
          """
          reason = CSRFCheck().process_view(request, None, (), {})
          if reason:
              # CSRF failed, bail with explicit error message
              raise exceptions.PermissionDenied('CSRF Failed: %s' % reason)