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...
1 parent 5fddfda commit f9fba51164f36519e9b2f7917296ddd83b86ef47 @andrewgodwin andrewgodwin committed Dec 22, 2010
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.

0 comments on commit f9fba51

Please sign in to comment.