I am using WTForms for the first time. Using WTForms to validate POST requests in Tornado Below is my forms forms.py
class UserForm(Form):user = TextField('user', [validators.Length(min=23, max=23)])
In the tonado handler I have
def post(self):form = UserForm(self.request.body)
The error message i get is: formdata should be a multidict-type wrapper that supports the 'getlist' method"
How could I make this work?