diff options
| author | Mads Jensen <mje@inducks.org> | 2017-06-08 21:15:29 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-06-08 15:15:29 -0400 |
| commit | c7f6ffbdcf9ca8df905aebf73336ef9905771f7c (patch) | |
| tree | 002de0322ce05e2ead82fcf01265377f4ddf9065 /docs/releases | |
| parent | f6bd00131e687aedf2719ad31e84b097562ca5f2 (diff) | |
Fixed #28103 -- Added quarter extract, truncation, and lookup.
Thanks Mariusz Felisiak, Tim Graham, and Adam Johnson for review.
Diffstat (limited to 'docs/releases')
| -rw-r--r-- | docs/releases/2.0.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/releases/2.0.txt b/docs/releases/2.0.txt index 2c9df4e3ce..de5559a7eb 100644 --- a/docs/releases/2.0.txt +++ b/docs/releases/2.0.txt @@ -227,6 +227,15 @@ Models from the database. For databases that don't support server-side cursors, it controls the number of results Django fetches from the database adapter. +* Added the :class:`~django.db.models.functions.datetime.ExtractQuarter` + function to extract the quarter from :class:`~django.db.models.DateField` and + :class:`~django.db.models.DateTimeField`, and exposed it through the + :lookup:`quarter` lookup. + +* Added the :class:`~django.db.models.functions.datetime.TruncQuarter` + function to truncate :class:`~django.db.models.DateField` and + :class:`~django.db.models.DateTimeField` to the first day of a quarter. + Requests and Responses ~~~~~~~~~~~~~~~~~~~~~~ |
