Commit d940c21d authored by Jacob Magnusson's avatar Jacob Magnusson

Support Python 3.5

parent c8fdf740
...@@ -5,6 +5,7 @@ python: ...@@ -5,6 +5,7 @@ python:
- "2.7" - "2.7"
- "3.3" - "3.3"
- "3.4" - "3.4"
- "3.5"
env: env:
- WTFORMS_VERSION=1 - WTFORMS_VERSION=1
......
...@@ -2170,7 +2170,7 @@ class BaseModelView(BaseView, ActionsMixin): ...@@ -2170,7 +2170,7 @@ class BaseModelView(BaseView, ActionsMixin):
# prevent validation issues due to submitting a single field # prevent validation issues due to submitting a single field
# delete all fields except the submitted fields and csrf token # delete all fields except the submitted fields and csrf token
for field in form: for field in list(form):
if (field.name in request.form) or (field.name == 'csrf_token'): if (field.name in request.form) or (field.name == 'csrf_token'):
pass pass
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment