Fix documentation's sample code in API Guide (#4756)

This commit is contained in:
Masashi SHIBATA 2016-12-17 22:00:29 +09:00 committed by Tom Christie
parent ebe174c0d7
commit c2367fb017

View File

@ -281,8 +281,8 @@ A generic view with sections in the class docstring, using single-line style.
class UserList(generics.ListCreateAPIView):
"""
get: Create a new user.
post: List all the users.
get: List all the users.
post: Create a new user.
"""
queryset = User.objects.all()
serializer_class = UserSerializer