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
218 stars 125 forks source link

Add option to not style input as readonly #85

Open getup8 opened 8 years ago

getup8 commented 8 years ago

That's it..

getup8 commented 8 years ago

Current workaround (unless I'm missing something..) is to set attrs to anything valid, even if you don't want to add any attributes.

DateWidget(attrs={'data-readonly': 'false'})

Why this happens: https://github.com/asaglimbeni/django-datetime-widget/blob/master/datetimewidget/widgets.py#L182

symbiosdotwiki commented 8 years ago

+1 for this

C-BERBER commented 7 years ago

This helped to open my text portion of the field but the X and the other button are still greyed out... Any thoughts? Thanks