You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -278,7 +278,7 @@ class ArtistSerializer(serializers.HyperlinkedModelSerializer):
278
278
2. Create hyperlinks for the relationships
279
279
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.
280
280
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.
282
282
283
283
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.
0 commit comments