mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-11 04:07:39 +03:00
Merge pull request #983 from yprez/fix_doc_class_names
Fix Mixin class name in viewsets docs example
This commit is contained in:
commit
ae5219dc70
|
@ -205,9 +205,9 @@ You may need to provide custom `ViewSet` classes that do not have the full set o
|
|||
|
||||
To create a base viewset class that provides `create`, `list` and `retrieve` operations, inherit from `GenericViewSet`, and mixin the required actions:
|
||||
|
||||
class CreateListRetrieveViewSet(mixins.CreateMixin,
|
||||
mixins.ListMixin,
|
||||
mixins.RetrieveMixin,
|
||||
class CreateListRetrieveViewSet(mixins.CreateModelMixin,
|
||||
mixins.ListModelMixin,
|
||||
mixins.RetrieveModelMixin,
|
||||
viewsets.GenericViewSet):
|
||||
"""
|
||||
A viewset that provides `retrieve`, `update`, and `list` actions.
|
||||
|
|
Loading…
Reference in New Issue
Block a user