We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from flask_wtf import FlaskForm from wtforms import ( BooleanField, EmailField, IntegerField, StringField, HiddenField, DecimalField, # validators, ) # from wtforms.fields import EmailField from datetime import datetime, date, time, timedelta #[...]
AttributeError: module 'wtforms.fields.datetime' has no attribute 'now'
I was able to fix it by moving the datetime import into the instance/class method bodies. Weird, but seems to hold.
I haven't time to make a minimal reproducable error; I hope this issue report is some help.
The text was updated successfully, but these errors were encountered:
That sounds like you have a from wtforms.fields import datetime somewhere in your file.
from wtforms.fields import datetime
Sorry, something went wrong.
No branches or pull requests
AttributeError: module 'wtforms.fields.datetime' has no attribute 'now'
I was able to fix it by moving the datetime import into the instance/class method bodies. Weird, but seems to hold.
I haven't time to make a minimal reproducable error; I hope this issue report is some help.
The text was updated successfully, but these errors were encountered: