From a23f9fcdb17336dd40d074ebe55caddd61be58bc Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Tue, 13 Mar 2018 11:18:48 +0300 Subject: [PATCH] LIL-303. Only root nodes of comments in top --- api/v1/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1/views.py b/api/v1/views.py index 8d553dd8..db0d8754 100644 --- a/api/v1/views.py +++ b/api/v1/views.py @@ -340,7 +340,7 @@ class ConfigViewSet(generics.RetrieveUpdateAPIView): class CommentViewSet(ExtendedModelViewSet): - queryset = Comment.objects.all() + queryset = Comment.objects.filter(level=0) serializer_class = CommentSerializer permission_classes = (IsAdmin,)