From 7287d3e77c4464f5cf583ce45d3ec24e231ca133 Mon Sep 17 00:00:00 2001 From: ilearnit Date: Fri, 7 Dec 2018 07:59:41 +0000 Subject: [PATCH] fix review comment detail --- seahub/api2/endpoints/review_comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seahub/api2/endpoints/review_comments.py b/seahub/api2/endpoints/review_comments.py index 4d3c4c1fec..2d7a5f20fb 100644 --- a/seahub/api2/endpoints/review_comments.py +++ b/seahub/api2/endpoints/review_comments.py @@ -190,7 +190,7 @@ class ReviewCommentView(APIView): logger.error(e) return api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, 'Internal error.') - if detail is not None: + if detail: try: review_comment.detail = detail review_comment.save()