Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
fix for scaffold collection-item view not returning objects
Browse files Browse the repository at this point in the history
  • Loading branch information
jstoiko committed Nov 29, 2015
1 parent 1898970 commit 0af529c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ class ItemsView(BaseView):
return self.get_collection_es()

def show(self, **kwargs):
return self.Model.get(
id=kwargs.pop('item_id'),
__raise=True)
return self.Model.get_item(
id=kwargs.pop('item_id'), **kwargs)

def create(self):
item = self.Model(**self._json_params)
Expand Down

0 comments on commit 0af529c

Please sign in to comment.