mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-23 23:12:59 +03:00
Merge pull request #59 from gwrtheyrn/patch-1
Fixed TypeError that occurs without request data.
This commit is contained in:
commit
53fcf29081
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user