Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 2797c0f

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)