From f7a071e54c8c38247bd76331c23e825c982e33a9 Mon Sep 17 00:00:00 2001 From: Asif Saif Uddin Date: Tue, 22 Nov 2022 12:27:16 +0600 Subject: [PATCH] Update docs/tutorial/6-viewsets-and-routers.md --- docs/tutorial/6-viewsets-and-routers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/6-viewsets-and-routers.md b/docs/tutorial/6-viewsets-and-routers.md index 931d64873..196f14b0e 100644 --- a/docs/tutorial/6-viewsets-and-routers.md +++ b/docs/tutorial/6-viewsets-and-routers.md @@ -124,7 +124,7 @@ Here's our re-wired `snippets/urls.py` file. path('', include(router.urls)), ] -Registering the view sets with the router is similar to providing a urlpattern. We include two arguments - the URL prefix for the views, and the view set itself. +Registering the ViewSets with the router is similar to providing a urlpattern. We include two arguments - the URL prefix for the views, and the view set itself. The `DefaultRouter` class we're using also automatically creates the API root view for us, so we can now delete the `api_root` function from our `views` module.