from rest_framework import serializers from metaservicesynced.models import Preferreddrivers class PreferreddriversSerializer(serializers.ModelSerializer): class Meta: model = Preferreddrivers fields= ['provider_id','client_id','id']