Commit 56fbc9ce authored by Serge S. Koval's avatar Serge S. Koval

Merge pull request #1232 from jmagnusson/py35

Support Python 3.5
parents c8fdf740 d940c21d
...@@ -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