manager: do not show seconds in time period edit form (#70375)

This commit is contained in:
Valentin Deniaud 2022-10-17 18:20:36 +02:00
parent 453d400d45
commit 7df917588e
1 changed files with 1 additions and 0 deletions

View File

@ -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}'