diff --git a/first_api/music/serializers.py b/first_api/music/serializers.py new file mode 100644 index 0000000..02ad3ec --- /dev/null +++ b/first_api/music/serializers.py @@ -0,0 +1,9 @@ +from rest_framework import serializers + +from music.models import Artist + + +class ArtistSerializer(serializers.HyperlinkedModelSerializer): + class Meta: + model = Artist + fields = ['name']