Skip to content

Commit

Permalink
Fixed PostFormParameters implementation to avoid unnecessary location…
Browse files Browse the repository at this point in the history
… override
  • Loading branch information
frol committed Sep 28, 2016
1 parent 146037c commit d8f3525
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flask_restplus_patched/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def __init__(self, *args, **kwargs):
for field in itervalues(self.fields):
if field.dump_only:
continue
field.metadata['location'] = 'form'
if not field.metadata.get('location'):
field.metadata['location'] = 'form'


class PatchJSONParameters(Parameters):
Expand Down

0 comments on commit d8f3525

Please sign in to comment.