Commit ce5e8f89 by Tom Christie
parents ae63c497 ae5219dc
...@@ -205,9 +205,9 @@ You may need to provide custom `ViewSet` classes that do not have the full set o ...@@ -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: 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, class CreateListRetrieveViewSet(mixins.CreateModelMixin,
mixins.ListMixin, mixins.ListModelMixin,
mixins.RetrieveMixin, mixins.RetrieveModelMixin,
viewsets.GenericViewSet): viewsets.GenericViewSet):
""" """
A viewset that provides `retrieve`, `update`, and `list` actions. A viewset that provides `retrieve`, `update`, and `list` actions.
......
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