verdic
class BlogCommentSerializer(serializers.ModelSerializer):
author_name = serializers.SerializerMethodField()
class Meta:
model = BlogComment
fields = ['id', 'blog_post', 'author', 'author_name', 'content', 'created_at', 'updat...
rahulcodewith.hashnode.dev1 min read