mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #24767 -- Added Greatest and Least expressions
Greatest and Least are row-level Function versions of Min and Max.
This commit is contained in:
@@ -256,6 +256,9 @@ Models
|
||||
* Added the :lookup:`date` lookup to :class:`~django.db.models.DateTimeField`
|
||||
to allow querying the field by only the date portion.
|
||||
|
||||
* Added the :class:`~django.db.models.functions.Greatest` and
|
||||
:class:`~django.db.models.functions.Least` database functions.
|
||||
|
||||
* Added the :class:`~django.db.models.functions.Now` database function, which
|
||||
returns the current date and time.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user