diff options
| author | Tom Christie | 2014-12-17 16:23:42 +0000 | 
|---|---|---|
| committer | Tom Christie | 2014-12-17 16:23:42 +0000 | 
| commit | 760da25c6018eff02b3aab33dc6fea7c93881d9f (patch) | |
| tree | cda0f7ea1821d3054be7f9e9251e37b4c06281b7 /api-guide/routers/index.html | |
| parent | c05c1f5c7cf562634382c25716d7a7588794f107 (diff) | |
| download | django-rest-framework-760da25c6018eff02b3aab33dc6fea7c93881d9f.tar.bz2 | |
Update documentation
Diffstat (limited to 'api-guide/routers/index.html')
| -rw-r--r-- | api-guide/routers/index.html | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/api-guide/routers/index.html b/api-guide/routers/index.html index 892e9df4..e204b48e 100644 --- a/api-guide/routers/index.html +++ b/api-guide/routers/index.html @@ -462,7 +462,7 @@ urlpatterns = router.urls  </ul>  <hr />  <p><strong>Note</strong>: The <code>base_name</code> argument is used to specify the initial part of the view name pattern.  In the example above, that's the <code>user</code> or <code>account</code> part.</p> -<p>Typically you won't <em>need</em> to specify the <code>base-name</code> argument, but if you have a viewset where you've defined a custom <code>get_queryset</code> method, then the viewset may not have a <code>.queryset</code> attribute set.  If you try to register that viewset you'll see an error like this:</p> +<p>Typically you won't <em>need</em> to specify the <code>base_name</code> argument, but if you have a viewset where you've defined a custom <code>get_queryset</code> method, then the viewset may not have a <code>.queryset</code> attribute set.  If you try to register that viewset you'll see an error like this:</p>  <pre><code>'base_name' argument not specified, and could not automatically determine the name from the viewset, as it does not have a '.queryset' attribute.  </code></pre>  <p>This means you'll need to explicitly set the <code>base_name</code> argument when registering the viewset, as it could not be automatically determined from the model name.</p> | 
