diff options
| author | BrickXu | 2014-11-25 17:40:32 +0800 |
|---|---|---|
| committer | BrickXu | 2014-11-25 17:40:32 +0800 |
| commit | 71654967325ff5c587ce37031109152e741786ee (patch) | |
| tree | 14577a6ba5cbe90036c46e648bde222e5c5015a0 /docs/tutorial/6-viewsets-and-routers.md | |
| parent | 5cad60dc4f1bce535497151a2f4f3ece08389f31 (diff) | |
| parent | ecc26f6cb1e8b1f1a4cd72cf980b750aeed65cf7 (diff) | |
| download | django-rest-framework-71654967325ff5c587ce37031109152e741786ee.tar.bz2 | |
Merge pull request #1 from tomchristie/master
Merge upstream
Diffstat (limited to 'docs/tutorial/6-viewsets-and-routers.md')
| -rw-r--r-- | docs/tutorial/6-viewsets-and-routers.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorial/6-viewsets-and-routers.md b/docs/tutorial/6-viewsets-and-routers.md index cf37a260..3fad509a 100644 --- a/docs/tutorial/6-viewsets-and-routers.md +++ b/docs/tutorial/6-viewsets-and-routers.md @@ -60,7 +60,7 @@ To see what's going on under the hood let's first explicitly create a set of vie In the `urls.py` file we bind our `ViewSet` classes into a set of concrete views. - from snippets.views import SnippetViewSet, UserViewSet + from snippets.views import SnippetViewSet, UserViewSet, api_root from rest_framework import renderers snippet_list = SnippetViewSet.as_view({ |
