dakrauth / django-swingtime

📆 Event and occurrence scheduling application for Django
https://dakrauth.github.io/django-swingtime/
MIT License
313 stars 99 forks source link

Fix split datetime widget #26

Closed blablacio closed 3 years ago

blablacio commented 6 years ago

SingleOccurrenceForm does not work properly when updating an occurrence because start_time and end_time form fields are supposed to be datetime objects.

We have the decompress method overridden in SplitDateTimeWidget, but the opposite needs to be implemented through value_from_datadict method in order for the DateTimeField to validate the date/time submitted.