manager: do not show seconds in time period edit form (#70375)
This commit is contained in:
parent
453d400d45
commit
7df917588e
|
@ -57,6 +57,7 @@ class TimeWidget(TimeInput):
|
|||
input_type = 'time'
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
kwargs['format'] = '%H:%M'
|
||||
super().__init__(**kwargs)
|
||||
self.attrs['step'] = '300' # 5 minutes
|
||||
self.attrs['pattern'] = '[0-9]{2}:[0-9]{2}'
|
||||
|
|
Loading…
Reference in New Issue