mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #13008 -- Added more Cache-Control headers to never_cache() decorator.
This commit is contained in:
parent
82162b4499
commit
4a438e400b
7 changed files with 45 additions and 3 deletions
|
@ -1474,7 +1474,7 @@ templates used by the :class:`ModelAdmin` views:
|
|||
url(r'^my_view/$', self.admin_site.admin_view(self.my_view))
|
||||
|
||||
This wrapping will protect ``self.my_view`` from unauthorized access and
|
||||
will apply the ``django.views.decorators.cache.never_cache`` decorator to
|
||||
will apply the :func:`django.views.decorators.cache.never_cache` decorator to
|
||||
make sure it is not cached if the cache middleware is active.
|
||||
|
||||
If the page is cacheable, but you still want the permission check to be
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue