From 50496b5f4d8fa806f7db392c1570d32eb5255749 Mon Sep 17 00:00:00 2001 From: Sumanth Ratna <2022sratna@tjhsst.edu> Date: Wed, 30 Dec 2020 18:13:09 -0500 Subject: [PATCH] Update docs --- docs/api-guide/routers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-guide/routers.md b/docs/api-guide/routers.md index 8d8594eee..c20da47f7 100644 --- a/docs/api-guide/routers.md +++ b/docs/api-guide/routers.md @@ -27,7 +27,7 @@ Here's an example of a simple URL conf, that uses `SimpleRouter`. There are two mandatory arguments to the `register()` method: * `prefix` - The URL prefix to use for this set of routes. -* `viewset` - The viewset class. +* `viewset` - The view handler: either a REST Framework `ViewSet`, REST Framework `APIView`, Django `View`, or Django view function. If you provide a class (as opposed to a Django view function), make sure to only provide the class; don't instantiate the class. Optionally, you may also specify an additional argument: