diff -r 9b928c6702bc django/db/backends/oracle/query.py
a
|
b
|
|
87 | 87 | value = datetime.datetime(value.year, value.month, |
88 | 88 | value.day, value.hour, value.minute, value.second, |
89 | 89 | value.fsecond) |
90 | | if field and field.get_internal_type() == 'DateField': |
| 90 | if field and field.get_internal_type() == 'DateTimeField': |
| 91 | return value |
| 92 | elif field and field.get_internal_type() == 'DateField': |
91 | 93 | value = value.date() |
92 | 94 | elif field and field.get_internal_type() == 'TimeField' or (value.year == 1900 and value.month == value.day == 1): |
93 | 95 | value = value.time() |