From 3ba0ddaaa9c67c169647d33b6bc1eb9e645ec09b Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 6 Dec 2024 13:24:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20enstat=E6=8F=90=E4=BE=9B=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/enm/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/enm/views.py b/apps/enm/views.py index f2c8dab7..055c0b76 100644 --- a/apps/enm/views.py +++ b/apps/enm/views.py @@ -238,6 +238,7 @@ class EnStatViewSet(CustomListModelMixin, CustomGenericViewSet): select_related_fields = ["mgroup", "team", "mgroup__belong_dept"] filterset_class = EnStatFilter ordering = ["mgroup__sort", "year_s", "month_s", "day_s", "hour"] + ordering_fields = ["mgroup__sort", "year_s", "month_s", "day_s", "hour"] @action(methods=["post"], detail=False, perms_map={"post": "*"}, serializer_class=EnStatAnaSerializer) def analyze(self, request, *args, **kwargs):