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