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.