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

Fixed #24866 -- Added Now() database function

This commit is contained in:
Adam Chainz
2015-05-29 15:54:10 +01:00
committed by Tim Graham
parent 002b3d87b5
commit 23048d186c
4 changed files with 75 additions and 2 deletions

View File

@@ -240,6 +240,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.Now` database function, which
returns the current date and time.
CSRF
^^^^