[Answered ]-Django serializer field not recognizing attribute clearly defined

1👍

Since querysets are a collection of objects, many=True..[DRF-doc] needs to be set in the serializer:

serializedtopcomments = ContentFeedPostCommentSerializer(topcomments, many=True)
serializedreplycomments = ContentFeedPostCommentSerializer(replycomments, many=True)

Leave a comment