1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #33562 -- Made HttpResponse.set_cookie() support timedelta for the max_age argument.

This commit is contained in:
Luke Plant
2022-03-04 12:57:10 +00:00
committed by Mariusz Felisiak
parent 1882f6567d
commit ae2da5ba65
5 changed files with 29 additions and 4 deletions

View File

@@ -281,7 +281,8 @@ Models
Requests and Responses
~~~~~~~~~~~~~~~~~~~~~~
* ...
* :meth:`.HttpResponse.set_cookie` now supports :class:`~datetime.timedelta`
objects for the ``max_age`` argument.
Security
~~~~~~~~