# 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()
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
2 matches
Mail list logo