N
N
NikClik2018-08-31 02:12:29
Django
NikClik, 2018-08-31 02:12:29

How to change widget for SplitDateTimeField?

I have a DateTimeField field in the model, when I make a form for this model and send it to the template, the field to fill in the DateTimeField is presented as a normal . I found a SplitDateTimeField, but now I don't understand how to change the widget for each field so that in one field the type is date and the other field has type="time", how can I do this?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question