diff options
| author | Danilo Bargen | 2013-02-25 21:31:12 +0100 | 
|---|---|---|
| committer | Danilo Bargen | 2013-02-25 21:31:12 +0100 | 
| commit | 70db39859586aa49b6065ee1625fbfba3b50ae23 (patch) | |
| tree | 35b919de8b053e32cb899daa909f24134114c53f /docs/tutorial | |
| parent | 8da83f0df9761550cbcac88850a659aab00a2506 (diff) | |
| download | django-rest-framework-70db39859586aa49b6065ee1625fbfba3b50ae23.tar.bz2 | |
Renamed UserInstance to UserDetail in docs
Diffstat (limited to 'docs/tutorial')
| -rw-r--r-- | docs/tutorial/4-authentication-and-permissions.md | 4 | ||||
| -rw-r--r-- | docs/tutorial/5-relationships-and-hyperlinked-apis.md | 4 | 
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/tutorial/4-authentication-and-permissions.md b/docs/tutorial/4-authentication-and-permissions.md index 3c4e042b..3ee755a2 100644 --- a/docs/tutorial/4-authentication-and-permissions.md +++ b/docs/tutorial/4-authentication-and-permissions.md @@ -72,14 +72,14 @@ We'll also add a couple of views.  We'd like to just use read-only views for the          serializer_class = UserSerializer -    class UserInstance(generics.RetrieveAPIView): +    class UserDetail(generics.RetrieveAPIView):          model = User          serializer_class = UserSerializer  Finally we need to add those views into the API, by referencing them from the URL conf.      url(r'^users/$', views.UserList.as_view()), -    url(r'^users/(?P<pk>[0-9]+)/$', views.UserInstance.as_view()), +    url(r'^users/(?P<pk>[0-9]+)/$', views.UserDetail.as_view()),  ## Associating Snippets with Users diff --git a/docs/tutorial/5-relationships-and-hyperlinked-apis.md b/docs/tutorial/5-relationships-and-hyperlinked-apis.md index 81be333b..a702a09d 100644 --- a/docs/tutorial/5-relationships-and-hyperlinked-apis.md +++ b/docs/tutorial/5-relationships-and-hyperlinked-apis.md @@ -123,7 +123,7 @@ After adding all those names into our URLconf, our final `'urls.py'` file should              views.UserList.as_view(),              name='user-list'),          url(r'^users/(?P<pk>[0-9]+)/$', -            views.UserInstance.as_view(), +            views.UserDetail.as_view(),              name='user-detail')      )) @@ -173,4 +173,4 @@ We've reached the end of our tutorial.  If you want to get more involved in the  [sandbox]: http://restframework.herokuapp.com/  [github]: https://github.com/tomchristie/django-rest-framework  [group]: https://groups.google.com/forum/?fromgroups#!forum/django-rest-framework -[twitter]: https://twitter.com/_tomchristie
\ No newline at end of file +[twitter]: https://twitter.com/_tomchristie  | 
