Skip to content

Commit 060dc12

Browse files
committed
Fix sequence logic
Now it says view first and really implements the view first in sequence.
1 parent 4bf949b commit 060dc12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ class ArtistSerializer(serializers.HyperlinkedModelSerializer):
278278
2. Create hyperlinks for the relationships
279279
4. We need to pass explicitly the fields from the Artist model that will be in the serializer at the `fields` in the Meta class.
280280

281-
With the serializer in place we need more 2 steps, the url mapping and the view.
281+
With the serializer in place we need more 2 steps, the view and the url mapping.
282282

283283
Let's do both in sequence, first the view. For the view we are going to use a [ModelViewSet](https://www.django-rest-framework.org/api-guide/viewsets/#modelviewset). Inside our file `music.views.py` we need to add this snipper.
284284

0 commit comments

Comments
 (0)