mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Removed unnecessary microsecond truncation in SplitDateTimeWidget.
The microseconds are already truncated by the TimeInput subwidget.
This commit is contained in:
@@ -359,7 +359,7 @@ foundation for custom widgets.
|
||||
|
||||
def decompress(self, value):
|
||||
if value:
|
||||
return [value.date(), value.time().replace(microsecond=0)]
|
||||
return [value.date(), value.time()]
|
||||
return [None, None]
|
||||
|
||||
.. tip::
|
||||
|
||||
Reference in New Issue
Block a user