1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #31623 -- Allowed specifying number of adjacent time units in timesince()/timeuntil().

This commit is contained in:
Tim Park
2020-07-02 23:01:45 -07:00
committed by Mariusz Felisiak
parent bde33bdd51
commit 8fa9a6d29e
3 changed files with 56 additions and 16 deletions

View File

@@ -298,7 +298,9 @@ URLs
Utilities
~~~~~~~~~
* ...
* The new ``depth`` parameter of ``django.utils.timesince.timesince()`` and
``django.utils.timesince.timeuntil()`` functions allows specifying the number
of adjacent time units to return.
Validators
~~~~~~~~~~