diff options
| author | Xavier Ordoquy | 2014-11-24 10:08:49 +0100 |
|---|---|---|
| committer | Xavier Ordoquy | 2014-11-24 10:08:49 +0100 |
| commit | eb77de4bdd9d470b2d11485f57defde33dd74bba (patch) | |
| tree | 40d807f29e193977232362f2e35f3b9a2bd72cc7 /docs/tutorial | |
| parent | 5cad60dc4f1bce535497151a2f4f3ece08389f31 (diff) | |
| parent | 918b9cc6a605ee4701d77f73e93a62f04c2345b0 (diff) | |
| download | django-rest-framework-eb77de4bdd9d470b2d11485f57defde33dd74bba.tar.bz2 | |
Merge pull request #2117 from LuRsT/patch-6
Added missing import in tutorial snippet
Diffstat (limited to 'docs/tutorial')
| -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({ |
