Paul's Programming Notes     Archive     Feed     Github

Setting A WTForm Default Date To Today/Now

http://stackoverflow.com/a/27424739/1364191

It's definitely a common mistake for people using WTForms. When you create a form and use something like datetime.date.today() as a default value, that value will always stay the same. The fix is to use "datetime.date.today" instead of "datetime.date.today()".