mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-06-19 13:03:19 +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):
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user