1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Corrected get_cache_key() signature in docs.

Follow up to b22415214a and 
cb17f7ca22
This commit is contained in:
Борис Верховский 2020-03-10 03:12:32 -04:00 committed by GitHub
parent c48a7d3a8a
commit d82d2d49d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,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