Skip to content

Commit 1c33e84

Browse files
authored
Merge pull request #5005 from nicktimko/patch-1
Mention where the mixins live
2 parents 73ad88e + 51c6d23 commit 1c33e84

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/api-guide/viewsets.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ You may need to provide custom `ViewSet` classes that do not have the full set o
235235

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

238+
from rest_framework import mixins
239+
238240
class CreateListRetrieveViewSet(mixins.CreateModelMixin,
239241
mixins.ListModelMixin,
240242
mixins.RetrieveModelMixin,

0 commit comments

Comments
 (0)