From 8bb7343faa8828b5b1f5ad75a2e611384d315036 Mon Sep 17 00:00:00 2001 From: Oghenetega Okene Date: Fri, 23 Feb 2024 23:19:22 -0600 Subject: [PATCH] Update comment --- backend/post/serializers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/post/serializers.py b/backend/post/serializers.py index c034052..6cebeb0 100644 --- a/backend/post/serializers.py +++ b/backend/post/serializers.py @@ -51,8 +51,8 @@ class Meta: fields = "__all__" def get_replies(self, obj): - # Recursively serialize replies. - # replies represents the immediate descendants (i.e., children) of a particular comment. + # Recursively serialize replies. `replies` represents the immediate children + # of a particular comment. replies = Comment.objects.filter(post=obj.post, parent_comment=obj) serializer = CommentTreeSerializer(replies, many=True) return serializer.data