From 40165eecc40f9e223702a41a0cb0958515bb1f82 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 16 Dec 2021 20:13:17 +0100 Subject: Fixed #33350 -- Reallowed using cache decorators with duck-typed HttpRequest. Regression in 3fd82a62415e748002435e7bad06b5017507777c. Thanks Terence Honles for the report. --- docs/releases/4.0.1.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/4.0.1.txt b/docs/releases/4.0.1.txt index 08e5b206bb..50c84bfe17 100644 --- a/docs/releases/4.0.1.txt +++ b/docs/releases/4.0.1.txt @@ -15,3 +15,7 @@ Bugfixes * Fixed a bug in Django 4.0 that caused a crash on booleans with the ``RedisCache`` backend (:ticket:`33361`). + +* Relaxed the check added in Django 4.0 to reallow use of a duck-typed + ``HttpRequest`` in ``django.views.decorators.cache.cache_control()`` and + ``never_cache()`` decorators (:ticket:`33350`). -- cgit v1.3