1
0
mirror of https://github.com/django/django.git synced 2024-12-25 18:46:22 +00:00

Fixed #18122 - Clarified section title regarding applying permissions to generic views.

This commit is contained in:
Tim Graham 2012-07-31 16:13:52 -04:00
parent 8d3e501502
commit 964979e8ec

View File

@ -1447,10 +1447,10 @@ The permission_required decorator
.. currentmodule:: django.contrib.auth .. currentmodule:: django.contrib.auth
Limiting access to generic views Applying permissions to generic views
-------------------------------- -------------------------------------
To limit access to a :doc:`class-based generic view To apply a permission to a :doc:`class-based generic view
</ref/class-based-views/index>`, decorate the :meth:`View.dispatch </ref/class-based-views/index>`, decorate the :meth:`View.dispatch
<django.views.generic.base.View.dispatch>` method on the class. See <django.views.generic.base.View.dispatch>` method on the class. See
:ref:`decorating-class-based-views` for details. :ref:`decorating-class-based-views` for details.