diff options
| author | Tom Christie | 2014-11-25 08:59:59 +0000 |
|---|---|---|
| committer | Tom Christie | 2014-11-25 08:59:59 +0000 |
| commit | 735d2257b425fac185470b8b6fb1f74fa6f135f6 (patch) | |
| tree | 1925bad3a489943351c133c6d2295d0e8b7733cd /docs/tutorial/6-viewsets-and-routers.md | |
| parent | bdacb6624484209fb008293a9dc40c06a439ef71 (diff) | |
| parent | 3371131a61f680df42e6b54a24db4b18a1c3c9aa (diff) | |
| download | django-rest-framework-735d2257b425fac185470b8b6fb1f74fa6f135f6.tar.bz2 | |
Merge branch 'master' of https://github.com/tomchristie/django-rest-framework
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({ |
