def to_python(self, kw, state): d = super(RemoveTimeSlotForm, self).to_python(kw, state) d["weekday"] = kw.get('weekday', None) d['starttime'] = V.convertTime(kw.get('starttime','')) d['endtime'] = V.convertTime(kw.get('endtime','')) return d
def to_python(self, kw, state): d = super(RemoveTimeSlotForm, self).to_python(kw, state) d["weekday"] = kw.get('weekday', None) d['starttime'] = V.convertTime(kw.get('starttime', '')) d['endtime'] = V.convertTime(kw.get('endtime', '')) return d