mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-06-08 23:53:33 +03:00
Merge pull request #2117 from LuRsT/patch-6
Added missing import in tutorial snippet
This commit is contained in:
commit
eb77de4bdd
|
@ -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.
|
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
|
from rest_framework import renderers
|
||||||
|
|
||||||
snippet_list = SnippetViewSet.as_view({
|
snippet_list = SnippetViewSet.as_view({
|
||||||
|
|
Loading…
Reference in New Issue
Block a user