mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-16 19:41:06 +03:00
Fix documentation's sample code in API Guide (#4756)
This commit is contained in:
parent
ebe174c0d7
commit
c2367fb017
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user