asaglimbeni / django-datetime-widget

Bootstrap django-datetime-widget is a simple and clean widget for DateField, Timefiled and DateTimeField in Django framework. It is based on Bootstrap datetime picker, supports both Bootstrap 3 and Bootstrap 2
Other
219 stars 125 forks source link

todayBtn needs to be added to boolean list #84

Open getup8 opened 8 years ago

getup8 commented 8 years ago

todayBtn should be added to the list here: https://github.com/asaglimbeni/django-datetime-widget/blob/master/datetimewidget/widgets.py#L146

Workaround is just to assign 'todayBtn': 'true' instead of 'todayBtn': True in the options dict.

getup8 commented 8 years ago

Although I'm now reading the readme again:

If true , displays a "Today" button at the bottom of the datetimepicker to select the current date. If true, the "Today" button will only move the current date into view.

Is there a typo there and this field can take multiple values besides true and false?