mirror of
https://github.com/django/django.git
synced 2025-01-27 02:29:55 +00:00
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
This commit is contained in:
parent
5fddfda559
commit
f9fba51164
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user