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