Skip to content

Commit

Permalink
added support for paramType=body in extra actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Novarg committed Mar 12, 2014
1 parent ec37802 commit 9c4cb78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tastypie_swagger/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def build_parameters_from_extra_action(self, method, fields, resource_type):
description='Primary key of resource'))
for name, field in fields.items():
parameters.append(self.build_parameter(
paramType="query",
paramType=field.get("param_type", "query"),
name=name,
dataType=field.get("type", "string"),
required=field.get("required", True),
Expand Down

0 comments on commit 9c4cb78

Please sign in to comment.