Use a widget to select when in the browser

This commit is contained in:
tcely 2025-05-11 05:21:26 -04:00 committed by GitHub
parent cb36f44235
commit 12cdcdec96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,6 +49,13 @@ class ScheduleTaskForm(forms.Form):
when = forms.DateTimeField(
label=_('When the task should run'),
required=True,
#widget=forms.SplitDateTimeWidget(
# date_attrs={'type': 'date'},
# time_attrs={'type': 'time'},
#),
widget=forms.DateTimeInput(
attrs={'type': 'datetime-local'},
),
)