Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

todayBtn needs to be added to boolean list #84

Open
getup8 opened this issue Nov 3, 2015 · 1 comment
Open

todayBtn needs to be added to boolean list #84

getup8 opened this issue Nov 3, 2015 · 1 comment

Comments

@getup8
Copy link

getup8 commented Nov 3, 2015

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
Copy link
Author

getup8 commented Nov 3, 2015

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant