From a87f366779ccb878b926ba398239fc1fa32fab22 Mon Sep 17 00:00:00 2001 From: Mickael Ange Date: Sun, 30 Sep 2018 12:36:31 +0800 Subject: [PATCH] Fixed serialiser for GET_MANY --- .gitignore | 1 + flask_restless/views.py | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 8071bc8f..ea06e23c 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ build/ dist/ *egg*/ docs/_build +.project diff --git a/flask_restless/views.py b/flask_restless/views.py index 677efddf..1bf7a81e 100644 --- a/flask_restless/views.py +++ b/flask_restless/views.py @@ -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)