mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
Fix syntax error
This commit is contained in:
parent
8ee92f8a18
commit
3a5335f09f
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user