mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Fixes #7538 - use retrieve
action name instead of detail
This commit is contained in:
parent
91916a4db1
commit
a849627f88
|
@ -16,7 +16,7 @@ First of all let's refactor our `UserList` and `UserDetail` views into a single
|
|||
|
||||
class UserViewSet(viewsets.ReadOnlyModelViewSet):
|
||||
"""
|
||||
This viewset automatically provides `list` and `detail` actions.
|
||||
This viewset automatically provides `list` and `retrieve` actions.
|
||||
"""
|
||||
queryset = User.objects.all()
|
||||
serializer_class = UserSerializer
|
||||
|
|
Loading…
Reference in New Issue
Block a user