Updated SplitDateTimeResetWidget/Field

2007-02-28 Thread Giles Constant
# This one works better than the official one, and has a nice reset button. # feel free to comment :-) class SplitDateTimeResetField(MultiValueField): widget = SplitDateTimeResetWidget def __init__(self, required=True, widget=None, label=None, initial=None): fields = (DateField()

SplitDateTimeResetWidget/Field

2007-02-06 Thread Giles Constant
Hiya, I've been mucking about with the SplitDateTimeWidget field, and it didn't really work for me - it wouldn't accept "None", even when required was set to "False", and it needed a "set to now" button :-) Feel free to criticise the code, and have fun! _now_button = """ """ class SplitDat