validate_request/json_to_form_data fails on list of lists
Closed this issue · 1 comments
anemitz commented
Validating a request containing a document that has a ListField(ListField()) fails
File "/Users/anemitz/Dropbox/projects/flask-mongorest/flask_mongorest/views.py", line 58, in post
self._resource.validate_request()
File "/Users/anemitz/Dropbox/projects/flask-mongorest/flask_mongorest/resources.py", line 191, in validate_request
json_data = json_to_form_data('', self.data)
File "/Users/anemitz/Dropbox/projects/flask-mongorest/flask_mongorest/resources.py", line 176, in json_to_form_data
form_data.update(json_to_form_data('%s%s-%d-' % (prefix, k, n), el))
File "/Users/anemitz/Dropbox/projects/flask-mongorest/flask_mongorest/resources.py", line 173, in json_to_form_data
for k, v in json_data.iteritems():
AttributeError: 'list' object has no attribute 'iteritems'
thomasst commented
We're not using form validation anymore.