From 95739bc3bbfd9efb690be0ac00f8df2c04ba9582 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 14 Nov 2024 12:12:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20wmaterial=E5=A2=9E=E5=8A=A0=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/wpm/views.py b/apps/wpm/views.py index 2fdb4457..5c1456e8 100644 --- a/apps/wpm/views.py +++ b/apps/wpm/views.py @@ -118,6 +118,7 @@ class WMaterialViewSet(ListModelMixin, CustomGenericViewSet): search_fields = ['material__name', 'material__number', 'material__specification', 'batch', 'material__model'] filterset_class = WMaterialFilter + ordering_fields = ["update_time", "state", "count", "count_xtest"] def filter_queryset(self, queryset): queryset = super().filter_queryset(queryset)