From 2797c0f216288bd7ca82e9e32e5f7d699bac74df Mon Sep 17 00:00:00 2001 From: Marcelo Galigniana Date: Thu, 25 Jan 2024 12:01:06 +0100 Subject: [PATCH] Add missing import in /api-guide/viewsets/ example (#9235) --- docs/api-guide/viewsets.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-guide/viewsets.md b/docs/api-guide/viewsets.md index 41ba1743c..43007e95d 100644 --- a/docs/api-guide/viewsets.md +++ b/docs/api-guide/viewsets.md @@ -311,7 +311,7 @@ You may need to provide custom `ViewSet` classes that do not have the full set o To create a base viewset class that provides `create`, `list` and `retrieve` operations, inherit from `GenericViewSet`, and mixin the required actions: - from rest_framework import mixins + from rest_framework import mixins, viewsets class CreateListRetrieveViewSet(mixins.CreateModelMixin, mixins.ListModelMixin,