From 866c229f52df29f6b7b07463548532aae421fe42 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Fri, 25 Nov 2011 09:25:43 +0000 Subject: Fixed #17294 -- Supported nullable DateTimeFields when time zone support is enabled. Thanks pressureman for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17148 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/utils/timezone.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'django/utils') diff --git a/django/utils/timezone.py b/django/utils/timezone.py index 16e65fc62d..0476d46f7e 100644 --- a/django/utils/timezone.py +++ b/django/utils/timezone.py @@ -228,6 +228,9 @@ def now(): else: return datetime.now() +# By design, these four functions don't perform any checks on their arguments. +# The caller should ensure that they don't receive an invalid value like None. + def is_aware(value): """ Determines if a given datetime.datetime is aware. -- cgit v1.3