Commit e3c00e4c by Danilo Bargen

Fixed TypeError that occurs without request data.

If no request data gets sent, allowed_extra_fields is a set and can't be joined to a tuple using the + operator.
parent 746b817a
...@@ -111,7 +111,7 @@ class FormResource(Resource): ...@@ -111,7 +111,7 @@ class FormResource(Resource):
# To get around this case we revalidate with some fake data. # To get around this case we revalidate with some fake data.
if fake_data: if fake_data:
data[fake_data] = '_fake_data' data[fake_data] = '_fake_data'
allowed_extra_fields = allowed_extra_fields + ('_fake_data',) allowed_extra_fields = tuple(allowed_extra_fields) + ('_fake_data',)
bound_form = self.get_bound_form(data, files) bound_form = self.get_bound_form(data, files)
......
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