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

WTForms crashes when using HTML5 date picker #7

Open
trickidicki opened this issue Jul 23, 2018 · 0 comments
Open

WTForms crashes when using HTML5 date picker #7

trickidicki opened this issue Jul 23, 2018 · 0 comments

Comments

@trickidicki
Copy link

Trying to use Python2.7 and the wtforms 2.2.1 HTML5 date picker within a wizard page.

from wtforms.fields.html5 import DateField

The form displays fine when I first show it in the wizard but if I Next to another page and go back, things crash.

AttributeError: 'unicode' object has no attribute 'strftime'

File "G:\myapp\env\lib\site-packages\wtforms\fields\core.py", line 736, in _value
return self.data and self.data.strftime(self.format) or ''

Any idea where to start debugging?

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