Use time input_type on split_datetime_field

This commit is contained in:
Ales (Shagi) Zabala Alava 2022-07-01 09:19:18 +02:00
parent a8928587f2
commit 6e238b2f52
1 changed files with 1 additions and 0 deletions

View File

@ -78,4 +78,5 @@ def split_datetime_field(form, field_name):
),
)
new_field.widget.widgets[0].input_type = 'date'
new_field.widget.widgets[1].input_type = 'time'
form.fields[field_name] = new_field