Skip to content

Commit ce5e8f8

Browse files
committed
2 parents ae63c49 + ae5219d commit ce5e8f8

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)