Skip to content

Commit

Permalink
Add missing import instruction
Browse files Browse the repository at this point in the history
fyliu committed Sep 29, 2024
1 parent deaaad7 commit 22ed37d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -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):

0 comments on commit 22ed37d

Please sign in to comment.