from rest_framework import serializers from ..models import Country class CountrySerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Country fields = "__all__"