Skip to content

Commit 2797c0f

Browse files
authored
Add missing import in /api-guide/viewsets/ example (#9235)
1 parent ab694ec commit 2797c0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api-guide/viewsets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ You may need to provide custom `ViewSet` classes that do not have the full set o
311311

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

314-
from rest_framework import mixins
314+
from rest_framework import mixins, viewsets
315315

316316
class CreateListRetrieveViewSet(mixins.CreateModelMixin,
317317
mixins.ListModelMixin,

0 commit comments

Comments
 (0)