Skip to content
Browse files

Fix a small docstring bug in the CSRF decorators.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 5fddfda commit f9fba51164f36519e9b2f7917296ddd83b86ef47 @andrewgodwin andrewgodwin committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/views/decorators/
2 django/views/decorators/
@@ -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

0 comments on commit f9fba51

Please sign in to comment.
Something went wrong with that request. Please try again.