Skip to content
Advertisement

Tag: wtforms-json

WTForms-JSON not working with FormFields

Nested forms (FormFields) doesn’t get populated with data when I use WTForms-JSON. I can’t spot my mistake, see example below. I send the following JSON-request but the print after form.from_json(request.json) reveals that the address object is never populated with data (also, the “appropriate” errors are returned from the route). Print output: {‘name’: u’Alex’, ‘address’: {‘street’: u”, ‘number’: None}} I’m using

Advertisement