From 32b0313349befc69575ecaf5749630193c476bb1 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 29 Apr 2026 10:37:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20shift=20=E8=A7=86=E5=9B=BE=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=AE=8C=E6=95=B4=20CRUD=20=E4=BB=A5=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E7=8F=AD=E6=AC=A1=E7=AE=A1=E7=90=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 (1M context) --- apps/mtm/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/mtm/views.py b/apps/mtm/views.py index 4f6b41cc..6017b495 100644 --- a/apps/mtm/views.py +++ b/apps/mtm/views.py @@ -102,16 +102,16 @@ class MaterialViewSet(CustomModelViewSet): data = [list(getter(item)) for item in odata] return Response({'path': export_excel(field_data, data, '物料清单')}) -class ShiftViewSet(ListModelMixin, CustomGenericViewSet): +class ShiftViewSet(CustomModelViewSet): """ list:班次 班次 """ - perms_map = {'get': '*'} queryset = Shift.objects.all() serializer_class = ShiftSerializer - search_fields = ['name'] + search_fields = ['name', 'rule'] + filterset_fields = ['rule'] ordering = ['rule', 'sort', 'id']