rduplain/flask-wtf — Issue #9: Bug when loading json data into TextFields
Author: rduplain
Created: 2012-02-29 16:44:54+00:00
State: open

I'm writing a simple API that receives data via JSON. It takes that data, loads it via the json module into a native Python object, then passes it into the form constructor.

When I do this using a form defined via Flask-WTF, the TextFields have no data. When I do it via vanilla WTForms, everything works as expected.

I've attached a test file that should demonstrate what I'm talking about. It contains two simple forms, both with one field. One form uses flaskext.wtf, the other uses wtforms. I have tests both with and without csrf enabled.

---------------------------------------
- Bitbucket: https://bitbucket.org/danjac/flask-wtf/issue/9
- Originally Reported By: [Alex Vidal](http://bitbucket.org/avidal)
- Originally Created At: 2010-11-22 22:20:21