aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide/routers.md
diff options
context:
space:
mode:
authorTom Christie2015-01-29 21:25:07 +0000
committerTom Christie2015-01-29 21:25:07 +0000
commit2a43d9db87f92097bbc8720c3fc8f8a1dfba5a94 (patch)
treecbc175154ae21c78ed20d9bdc436707564ee9e5d /docs/api-guide/routers.md
parent60a63ffd2926f2e88dfa91fffa87b7aa0c1d73dd (diff)
parente720927b78a31999f03bfa248329d623ce2c045c (diff)
downloaddjango-rest-framework-2a43d9db87f92097bbc8720c3fc8f8a1dfba5a94.tar.bz2
Merge pull request #2486 from maryokhin/master
Cleanup '.model' shortcut from code and docs
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 a9f911a9..592f7d66 100644
--- a/docs/api-guide/routers.md
+++ b/docs/api-guide/routers.md
@@ -28,7 +28,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. Note that if the viewset does not include a `model` or `queryset` attribute then you must set `base_name` when registering the viewset.
+* `base_name` - The base to use for the URL names that are created. If unset the basename will be automatically generated based on the `queryset` attribute of the viewset, if it has one. Note that if the viewset does not include a `queryset` attribute then you must set `base_name` when registering the viewset.
The example above would generate the following URL patterns: