Merge pull request #59 from gwrtheyrn/patch-1

Fixed TypeError that occurs without request data.
This commit is contained in:
Tom Christie 2011-07-27 08:53:41 -07:00
commit 53fcf29081

View File

@ -111,7 +111,7 @@ class FormResource(Resource):
# To get around this case we revalidate with some fake data.
if 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)