From 2928587694bae5e0e742e9561efdd08ba5c6e5e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=BE=D1=80=D0=B8=D1=81=20=D0=92=D0=B5=D1=80=D1=85?= =?UTF-8?q?=D0=BE=D0=B2=D1=81=D0=BA=D0=B8=D0=B9?= Date: Tue, 10 Mar 2020 03:12:32 -0400 Subject: [PATCH] [3.0.x] Corrected get_cache_key() signature in docs. Follow up to b22415214a7bdeaf8ccd7b8b21872038ab865991 and cb17f7ca2252265ab4a844e7924cb8ebab4a1a76 Backport of d82d2d49d629f010da2c0d81b5927946d971ae72 from master --- docs/ref/utils.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index 17447ba757..a79320fced 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -82,7 +82,7 @@ need to distinguish caches by the ``Accept-language`` header. Handling an asterisk ``'*'`` according to :rfc:`7231#section-7.1.4` was added. -.. function:: get_cache_key(request, key_prefix=None) +.. function:: get_cache_key(request, key_prefix=None, method='GET', cache=None) Returns a cache key based on the request path. It can be used in the request phase because it pulls the list of headers to take into account