diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2009-10-27 00:43:16 +0000 |
|---|---|---|
| committer | Luke Plant <L.Plant.98@cantab.net> | 2009-10-27 00:43:16 +0000 |
| commit | 64b4ab18b47354fbd28fa93a1bc770728c596aac (patch) | |
| tree | 38fa1b27bfa309af66337227830c26ea0b4ed576 /docs | |
| parent | 7230a995ce81a7b8dd093bd03cc5ebd34106ee80 (diff) | |
Use decorator syntax for csrf_exempt example.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11663 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/csrf.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/contrib/csrf.txt b/docs/ref/contrib/csrf.txt index 0359599469..81b409f70e 100644 --- a/docs/ref/contrib/csrf.txt +++ b/docs/ref/contrib/csrf.txt @@ -212,9 +212,9 @@ middleware, you can use the ``csrf_exempt`` decorator, found in the from django.views.decorators.csrf import csrf_exempt + @csrf_exempt def my_view(request): return HttpResponse('Hello world') - my_view = csrf_exempt(my_view) Like the middleware, the ``csrf_exempt`` decorator is composed of two parts: a ``csrf_view_exempt`` decorator and a ``csrf_response_exempt`` decorator, found |
