diff options
| author | dpetzel | 2013-10-05 23:16:58 -0400 | 
|---|---|---|
| committer | dpetzel | 2013-10-05 23:16:58 -0400 | 
| commit | 864497eebbd39ab3e811c589a44a43176caef1bf (patch) | |
| tree | 7a87a03d15df933ec8050901bd259915c89d448c /docs/tutorial/4-authentication-and-permissions.md | |
| parent | 3833f1d55f97db33596242d89dbed997221f3b82 (diff) | |
| download | django-rest-framework-864497eebbd39ab3e811c589a44a43176caef1bf.tar.bz2 | |
Be sure to import UserSerializer
Diffstat (limited to 'docs/tutorial/4-authentication-and-permissions.md')
| -rw-r--r-- | docs/tutorial/4-authentication-and-permissions.md | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/docs/tutorial/4-authentication-and-permissions.md b/docs/tutorial/4-authentication-and-permissions.md index 393d879a..510aa243 100644 --- a/docs/tutorial/4-authentication-and-permissions.md +++ b/docs/tutorial/4-authentication-and-permissions.md @@ -75,6 +75,10 @@ We'll also add a couple of views.  We'd like to just use read-only views for the      class UserDetail(generics.RetrieveAPIView):          queryset = User.objects.all()          serializer_class = UserSerializer +         +Make sure to also import the `UserSerializer` class + +	from snippets.serializers import UserSerializer  Finally we need to add those views into the API, by referencing them from the URL conf. | 
