Skip to content

Commit

Permalink
Fixed serialiser for GET_MANY
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-ange committed Sep 30, 2018
1 parent bbb2f0a commit a87f366
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ build/
dist/
*egg*/
docs/_build
.project
7 changes: 1 addition & 6 deletions flask_restless/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -973,12 +973,7 @@ def _paginated(self, instances, deep):
start = 0
end = num_results
total_pages = 1
objects = [to_dict(x, deep, exclude=self.exclude_columns,
exclude_relations=self.exclude_relations,
include=self.include_columns,
include_relations=self.include_relations,
include_methods=self.include_methods)
for x in instances[start:end]]
objects = [self.serialize(x) for x in instances[start:end]]
return dict(page=page_num, objects=objects, total_pages=total_pages,
num_results=num_results)

Expand Down

0 comments on commit a87f366

Please sign in to comment.