DateTimeInput is being rendered as simple text input in django

后端 未结 1 1268
天命终不由人
天命终不由人 2021-01-23 03:09

I have tried to take date time input from the user but data type of date input is being set as type=\"text\"

following are the code snippets:

template:



        
1条回答
  •  逝去的感伤
    2021-01-23 03:21

    The default widget for DateTimeField is a text field (DateTimeInput). So this is expected behavior.

    0 讨论(0)
提交回复
热议问题