Merge pull request #983 from yprez/fix_doc_class_names

Fix Mixin class name in viewsets docs example
This commit is contained in:
Tom Christie 2013-07-14 10:43:19 -07:00
commit ae5219dc70

View File

@ -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.