Commit c2367fb0 by Masashi SHIBATA Committed by Tom Christie

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

parent ebe174c0
...@@ -281,8 +281,8 @@ A generic view with sections in the class docstring, using single-line style. ...@@ -281,8 +281,8 @@ A generic view with sections in the class docstring, using single-line style.
class UserList(generics.ListCreateAPIView): class UserList(generics.ListCreateAPIView):
""" """
get: Create a new user. get: List all the users.
post: List all the users. post: Create a new user.
""" """
queryset = User.objects.all() queryset = User.objects.all()
serializer_class = UserSerializer serializer_class = UserSerializer
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment