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
The previous and next buttons currently do not work when the widget is initially loaded.
This is caused when the startView option comes through as a string and the switch case for enabling these buttons is skipped.
This fix ensures the startView option is interpreted as an integer.
The previous and next buttons currently do not work when the widget is initially loaded. This is caused when the startView option comes through as a string and the switch case for enabling these buttons is skipped. This fix ensures the startView option is interpreted as an integer.