Fixes #7538 - use retrieve action name instead of detail

This commit is contained in:
Xavier Ordoquy 2020-10-05 21:48:07 +02:00
parent 91916a4db1
commit a849627f88

View File

@ -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