Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix a small docstring bug in the CSRF decorators.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15026 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f9fba51164f36519e9b2f7917296ddd83b86ef47 1 parent 5fddfda
@andrewgodwin andrewgodwin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/views/decorators/csrf.py
View
2  django/views/decorators/csrf.py
@@ -24,7 +24,7 @@ def _reject(self, request, reason):
requires_csrf_token = decorator_from_middleware(_EnsureCsrfToken)
requires_csrf_token.__name__ = 'requires_csrf_token'
-csrf_protect.__doc__ = """
+requires_csrf_token.__doc__ = """
Use this decorator on views that need a correct csrf_token available to
RequestContext, but without the CSRF protection that csrf_protect
enforces.
Please sign in to comment.
Something went wrong with that request. Please try again.