Skip to content

Commit

Permalink
Pass args and kwargs through get_related_links.
Browse files Browse the repository at this point in the history
The basic get_related_links function inside WebAPIResource was calling children
without passing in args and kwargs, which meant that any optional parameters
passed through those would get eaten.
  • Loading branch information
davidt committed Nov 15, 2010
1 parent 8c39fc2 commit f7591f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion djblets/webapi/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,8 @@ def get_links(self, resources=[], obj=None, request=None,
'href': '%s%s/' % (clean_base_href, resource.uri_name),
}

for key, info in self.get_related_links(obj, request).iteritems():
for key, info in self.get_related_links(obj, request,
*args, **kwargs).iteritems():
links[key] = {
'method': info['method'],
'href': info['href'],
Expand Down

0 comments on commit f7591f8

Please sign in to comment.