Update docs

This commit is contained in:
Sumanth Ratna 2020-12-30 18:13:09 -05:00
parent d83a978185
commit 50496b5f4d
No known key found for this signature in database
GPG Key ID: 310949B7C8B60603

View File

@ -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: There are two mandatory arguments to the `register()` method:
* `prefix` - The URL prefix to use for this set of routes. * `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: Optionally, you may also specify an additional argument: