rduplain/flask-wtf — Issue #13: WTForms: Error Handling for Forms in Templates
Author: rduplain
Created: 2012-02-29 16:46:11+00:00
State: open
Labels: bug, import

In the WTForms' documentation on [displaying errors](http://wtforms.simplecodes.com/#displaying-errors) it gives an example of putting all of a form's errors in a neat little section (second example) but when I run the aforementioned code Flask returns:

ValueError
ValueError: too many values to unpack

I imagine it comes from this line:

{% for field_name, field_errors in form.errors if field_errors %}

Is their example Django specific or am I just missing something?

---------------------------------------
- Bitbucket: https://bitbucket.org/danjac/flask-wtf/issue/13
- Originally Reported By: Anonymous
- Originally Created At: 2011-04-19 18:13:09