text: from rest_framework import serializers
  from users.serializers import UserSerializer
  
  from comments.models import Comment
  
  
  class CommentSerializer(serializers.ModelSerializer):
      author = UserSerializer(read_only=True)
  
      class Meta:
          model = Comment
          fields = ['id', 'author', 'body', 'created_at']
  
  
  class CreateCommentSerializer(serializers.ModelSerializer):
  
      class Meta:
          model = Comment
          fields = ['body']
  