from rest_framework import serializers from dbsynce.models import Relationship class RelationshipSerializer(serializers.ModelSerializer): class Meta: model = Relationship exclude = ["id"]