Fix syntax error

This commit is contained in:
Tom Christie 2014-09-25 13:12:02 +01:00
parent 8ee92f8a18
commit 3a5335f09f

View File

@ -635,7 +635,7 @@ class DateTimeField(Field):
return value
def to_internal_value(self, value):
if (isinstance(value, datetime.date) and not isinstance(value, datetime.datetime):
if isinstance(value, datetime.date) and not isinstance(value, datetime.datetime):
self.fail('date')
if isinstance(value, datetime.datetime):