From c046f2c8be2fb54518f65016f12aa6bca7f1772a Mon Sep 17 00:00:00 2001 From: ilearnit Date: Sat, 29 Dec 2018 02:28:13 +0000 Subject: [PATCH] [update] list reviews --- seahub/drafts/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seahub/drafts/models.py b/seahub/drafts/models.py index 1b41a4c39e..a94745acf1 100644 --- a/seahub/drafts/models.py +++ b/seahub/drafts/models.py @@ -290,7 +290,7 @@ class DraftReviewManager(models.Manager): reviews = self.filter(creator=creator, status=status) if with_reviewers: - reviewers = ReviewReviewer.objects.filter(review_id__in=reviews) + reviewers = list(ReviewReviewer.objects.filter(review_id__in=reviews)) data = [] for review in reviews: @@ -352,7 +352,7 @@ class DraftReviewManager(models.Manager): from seahub.api2.utils import user_to_dict reviews = self.filter(reviewreviewer__reviewer=reviewer, status=status) - reviewers = ReviewReviewer.objects.filter(review_id__in=reviews) + reviewers = list(ReviewReviewer.objects.filter(review_id__in=reviews)) data = [] for review in reviews: