mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 18:13:57 +03:00
Merge pull request #876 from atarzwell/master
Incorrect import in Tutorial - Step 6 - ViewSets
This commit is contained in:
commit
f77ae156f9
|
@ -59,7 +59,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.resources import SnippetResource, UserResource
|
from snippets.views import SnippetViewSet, UserViewSet
|
||||||
|
|
||||||
snippet_list = SnippetViewSet.as_view({
|
snippet_list = SnippetViewSet.as_view({
|
||||||
'get': 'list',
|
'get': 'list',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user