Skip to content

Commit

Permalink
Fix serialize_object lamba.
Browse files Browse the repository at this point in the history
Instead of serializing using the parent's class, we want the child to do it.
  • Loading branch information
davidt committed Nov 15, 2010
1 parent f7591f8 commit 8190f43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions djblets/webapi/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,8 @@ def get_list(self, request, *args, **kwargs):
*args, **kwargs).select_related(),
results_key=self.list_result_key,
serialize_object_func =
lambda obj: self.serialize_object(obj, request=request,
*args, **kwargs),
lambda obj: get_resource_for_object(obj).serialize_object(
obj, request=request, *args, **kwargs),
extra_data=data)
else:
return 200, data
Expand Down

0 comments on commit 8190f43

Please sign in to comment.