I'm using Thauber's lovely Django schedule app, but have run into a problem: I can't figure out how to exclude the time portion of the datetime field.
My form class and lame exclusion attempt looks like this:
class LaundryDeliveryForm(EventForm):
start = forms.DateTimeField(widget=forms.SplitDateTimeWidget)
end = forms.DateTimeField(widget=forms.SplitDateTimeWidget, help_text = ("The end time must be later than start time."))
class Meta:
model = LaundryDelivery
exclude = EventForm.Meta.exclude + ('active', 'start.time')
Ideally, I'd like to just store the day, or store the start.time as some arbitrary time like 8 a.m., but while the active field is happily excluded, the time field remains open.
Tried sifting through the documentation but couldn't track what I needed down.