Пример #1
0
 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
Пример #2
0
 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