Skip to content

Commit

Permalink
Clarifying the file to edit (#9189)
Browse files Browse the repository at this point in the history
  • Loading branch information
HGZahn authored Jan 4, 2024
1 parent 0f39e01 commit 4c231d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorial/6-viewsets-and-routers.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A `ViewSet` class is only bound to a set of method handlers at the last moment,

Let's take our current set of views, and refactor them into view sets.

First of all let's refactor our `UserList` and `UserDetail` classes into a single `UserViewSet` class. We can remove the two view classes, and replace them with a single ViewSet class:
First of all let's refactor our `UserList` and `UserDetail` classes into a single `UserViewSet` class. In the `snippets/views.py` file, we can remove the two view classes and replace them with a single ViewSet class:

from rest_framework import viewsets

Expand Down

0 comments on commit 4c231d5

Please sign in to comment.