diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-04-25 19:17:47 +0000 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-04-25 19:17:47 +0000 |
| commit | 1858e476721890ce1f47dfa4d2739d9e0f11621b (patch) | |
| tree | f8476bdf1de3cff6217ed4c77428eca3ef86db78 /docs/topics/auth.txt | |
| parent | ea9dc9f4b03ae034c1dc080730422dda7a9c2e47 (diff) | |
Fixed #18033 -- Removed function-based generic views, as per official deprecation timeline. Rest in peace! Thanks Anssi Kääriäinen for the review.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17937 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/topics/auth.txt')
| -rw-r--r-- | docs/topics/auth.txt | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/docs/topics/auth.txt b/docs/topics/auth.txt index d166fe5bcf..18f8947d87 100644 --- a/docs/topics/auth.txt +++ b/docs/topics/auth.txt @@ -1472,19 +1472,6 @@ To limit access to a :doc:`class-based generic view </ref/class-based-views>`, decorate the :meth:`View.dispatch <django.views.generic.base.View.dispatch>` method on the class. See :ref:`decorating-class-based-views` for details. -Function-based generic views -~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -To limit access to a :doc:`function-based generic view </ref/generic-views>`, -write a thin wrapper around the view, and point your URLconf to your wrapper -instead of the generic view itself. For example:: - - from django.views.generic.date_based import object_detail - - @login_required - def limited_object_detail(*args, **kwargs): - return object_detail(*args, **kwargs) - .. _permissions: Permissions |
