From d9a1512a92f9321bcf9b9fde55df24e705425c7b Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 2 Dec 2024 14:33:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=9A=E4=B9=89batchst=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=8E=92=E5=BA=8F=E4=B8=BAbatch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/wpm/views.py b/apps/wpm/views.py index 1331ebba..291e2e76 100644 --- a/apps/wpm/views.py +++ b/apps/wpm/views.py @@ -521,6 +521,8 @@ class BatchStViewSet(ListModelMixin, CustomGenericViewSet): perms_map = {"get": "*"} queryset = BatchSt.objects.all() serializer_class = BatchStSerializer + ordering_fields = ["batch", "last_time", "update_time"] + ordering = ["batch"] filterset_fields = { "batch": ["exact", "contains"], "last_time": ["exact", "gte", "lte"],