From 0931835708e7c6bbc8d4f0fe817311c72e9925c0 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 13 Jan 2025 16:10:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20wpr=E8=BF=94=E5=9B=9E=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpmw/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/wpmw/views.py b/apps/wpmw/views.py index 0d8b6d01..37424820 100644 --- a/apps/wpmw/views.py +++ b/apps/wpmw/views.py @@ -1,12 +1,12 @@ from apps.utils.viewsets import CustomModelViewSet, CustomGenericViewSet -from apps.utils.mixins import CustomListModelMixin +from apps.utils.mixins import CustomListModelMixin, RetrieveModelMixin from apps.wpmw.models import Wpr, WprDefect from apps.wpmw.serializers import WprSerializer -class WprViewSet(CustomListModelMixin, CustomGenericViewSet): +class WprViewSet(CustomListModelMixin, RetrieveModelMixin, CustomGenericViewSet): """动态产品 动态产品