from rest_framework import serializers from webservice_running.models import Comments class CommentsSerializer(serializers.ModelSerializer): class Meta: model = Comments exclude = ["id"]