From 94edcd631833d239325c398cd6cead2b22096af6 Mon Sep 17 00:00:00 2001 From: Marcelo Galigniana Date: Wed, 24 Jan 2024 17:35:22 -0300 Subject: [PATCH] Add missing import in /api-guide/viewsets/ example --- 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,