diff options
| author | Tom Christie | 2013-07-14 10:43:19 -0700 |
|---|---|---|
| committer | Tom Christie | 2013-07-14 10:43:19 -0700 |
| commit | ae5219dc7009598dffb7673d54fc71f01c209f05 (patch) | |
| tree | 110515c43669786c62fb1e2e136a81f58c51967f /docs | |
| parent | 6de9b7c8caaea00df2b1399ecd7b815ac556a70e (diff) | |
| parent | 77dd334026cb2f8a45b817c4577f5d5ea6a2671a (diff) | |
| download | django-rest-framework-ae5219dc7009598dffb7673d54fc71f01c209f05.tar.bz2 | |
Merge pull request #983 from yprez/fix_doc_class_names
Fix Mixin class name in viewsets docs example
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api-guide/viewsets.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/api-guide/viewsets.md b/docs/api-guide/viewsets.md index 25d11bfb..17c528b3 100644 --- a/docs/api-guide/viewsets.md +++ b/docs/api-guide/viewsets.md @@ -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. |
