Added missing import in tutorial snippet

This commit is contained in:
Gil Gonçalves 2014-11-24 08:54:07 +00:00
parent 5cad60dc4f
commit 918b9cc6a6

View File

@ -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({