From 22ed37d61cefd505d3a697eeba331fde51026e79 Mon Sep 17 00:00:00 2001 From: Fang Yi Liu Date: Sun, 29 Sep 2024 03:08:15 -0700 Subject: [PATCH] Add missing import instruction --- docs/index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index 68b602d..987b5e5 100644 --- a/docs/index.md +++ b/docs/index.md @@ -594,9 +594,10 @@ urlpatterns = [ ] ``` -After this we are going to create the `SongViewSet` in our `music.views` file using a `ModelViewSet` like in the snippet below. Also update Don't forget to add the import for the `SongSerializer` in your imports +After this we are going to create the `SongViewSet` in our `music.views` file using a `ModelViewSet` like in the snippet below. Also update Don't forget to add the import for `Song` and `SongSerializer` in your imports ```python +from music.models import Artist, Album, Song from music.serializers import ArtistSerializer, AlbumSerializer, SongSerializer class SongViewSet(viewsets.ModelViewSet):