Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

UserInstance -> UserDetail

  • Loading branch information...
commit a2447ee8835a4f888316066c6d72a19ba44a54f7 1 parent b6fb1b3
@tomchristie tomchristie authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  snippets/views.py
  2. +1 −1  tutorial/urls.py
View
2  snippets/views.py
@@ -90,7 +90,7 @@ class UserList(generics.ListAPIView):
serializer_class = UserSerializer
-class UserInstance(generics.RetrieveAPIView):
+class UserDetail(generics.RetrieveAPIView):
"""
This view presents a instance of one of the users in the system.
"""
View
2  tutorial/urls.py
@@ -8,7 +8,7 @@
url(r'^snippets/(?P<pk>[0-9]+)/$', views.SnippetDetail.as_view(), name='snippet-detail'),
url(r'^snippets/(?P<pk>[0-9]+)/highlight/$', views.SnippetHighlight.as_view(), name='snippet-highlight'),
url(r'^users/$', views.UserList.as_view(), name='user-list'),
- url(r'^users/(?P<pk>[0-9]+)/$', views.UserInstance.as_view(), name='user-detail')
+ url(r'^users/(?P<pk>[0-9]+)/$', views.UserDetail.as_view(), name='user-detail')
))
urlpatterns += patterns('',
Please sign in to comment.
Something went wrong with that request. Please try again.