Skip to content

Commit ae5219d

Browse files
committed
Merge pull request #983 from yprez/fix_doc_class_names
Fix Mixin class name in viewsets docs example
2 parents 6de9b7c + 77dd334 commit ae5219d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/api-guide/viewsets.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ You may need to provide custom `ViewSet` classes that do not have the full set o
205205

206206
To create a base viewset class that provides `create`, `list` and `retrieve` operations, inherit from `GenericViewSet`, and mixin the required actions:
207207

208-
class CreateListRetrieveViewSet(mixins.CreateMixin,
209-
mixins.ListMixin,
210-
mixins.RetrieveMixin,
208+
class CreateListRetrieveViewSet(mixins.CreateModelMixin,
209+
mixins.ListModelMixin,
210+
mixins.RetrieveModelMixin,
211211
viewsets.GenericViewSet):
212212
"""
213213
A viewset that provides `retrieve`, `update`, and `list` actions.

0 commit comments

Comments
 (0)