aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide/routers.md
diff options
context:
space:
mode:
authorTom Christie2013-06-21 22:19:14 +0100
committerTom Christie2013-06-21 22:19:14 +0100
commit2d5f7f201ffcc8c371e9f36821c2ae0e13dcecca (patch)
tree026c8c18904e0c18a7b65b6038bb46c03d3f3426 /docs/api-guide/routers.md
parent209b65f426e1935c970c95fad389ba5c03388592 (diff)
downloaddjango-rest-framework-2d5f7f201ffcc8c371e9f36821c2ae0e13dcecca.tar.bz2
Update router docs on base_name. Refs #933.
Diffstat (limited to 'docs/api-guide/routers.md')
-rw-r--r--docs/api-guide/routers.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api-guide/routers.md b/docs/api-guide/routers.md
index f16fa946..b74b6e13 100644
--- a/docs/api-guide/routers.md
+++ b/docs/api-guide/routers.md
@@ -26,7 +26,7 @@ There are two mandatory arguments to the `register()` method:
Optionally, you may also specify an additional argument:
-* `base_name` - The base to use for the URL names that are created. If unset the basename will be automatically generated based on the `model` or `queryset` attribute on the viewset, if it has one.
+* `base_name` - The base to use for the URL names that are created. If unset the basename will be automatically generated based on the `model` or `queryset` attribute on the viewset, if it has one. Note that if the viewset does not include a `model` or `queryset` attribute then you must set `base_name` when registering the viewset.
The example above would generate the following URL patterns: