diff options
| author | Tom Christie | 2013-10-11 00:36:55 -0700 | 
|---|---|---|
| committer | Tom Christie | 2013-10-11 00:36:55 -0700 | 
| commit | 97fbc5caec24474ddca9901ad145486a19964faf (patch) | |
| tree | 4581af419ca44ebaaec8e2adb19a394eb99fe07e /docs/tutorial | |
| parent | f18158358d99f94e2475821b1f3477dde0731bd7 (diff) | |
| parent | 864497eebbd39ab3e811c589a44a43176caef1bf (diff) | |
| download | django-rest-framework-97fbc5caec24474ddca9901ad145486a19964faf.tar.bz2 | |
Merge pull request #1157 from dpetzel/tutorial_authentication
Be sure to import UserSerializer
Diffstat (limited to 'docs/tutorial')
| -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. | 
