From f9fba51164f36519e9b2f7917296ddd83b86ef47 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Wed, 22 Dec 2010 21:49:20 +0000 Subject: [PATCH] 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 --- django/views/decorators/csrf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/views/decorators/csrf.py b/django/views/decorators/csrf.py index 89f676fe16..578854a529 100644 --- a/django/views/decorators/csrf.py +++ b/django/views/decorators/csrf.py @@ -24,7 +24,7 @@ class _EnsureCsrfToken(CsrfViewMiddleware): 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.