Fix documentation's sample code in API Guide

This commit is contained in:
c-bata 2016-12-17 16:17:13 +09:00
parent ebe174c0d7
commit 4b0ead0176

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