Merge pull request #5005 from nicktimko/patch-1

Mention where the mixins live
This commit is contained in:
Xavier Ordoquy 2017-03-20 06:59:56 +01:00 committed by GitHub
commit 1c33e84e28

View File

@ -235,6 +235,8 @@ 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:
from rest_framework import mixins
class CreateListRetrieveViewSet(mixins.CreateModelMixin,
mixins.ListModelMixin,
mixins.RetrieveModelMixin,