feat: 变更enstat排序
This commit is contained in:
parent
841ece1d4f
commit
f90bcd530b
|
@ -243,8 +243,8 @@ class EnStatViewSet(CustomListModelMixin, BulkUpdateModelMixin, CustomGenericVi
|
|||
update_serializer_class = EnStatUpdateSerializer
|
||||
select_related_fields = ["mgroup", "team", "mgroup__belong_dept"]
|
||||
filterset_class = EnStatFilter
|
||||
ordering = ["mgroup__sort", "year_s", "month_s", "day_s", "create_time"]
|
||||
ordering_fields = ["mgroup__sort", "year_s", "month_s", "day_s", "hour", "update_time", "create_time"]
|
||||
ordering = ["mgroup__sort", "year_s", "month_s", "day_s", "team__create_time", "create_time"]
|
||||
ordering_fields = ["mgroup__sort", "year_s", "month_s", "day_s", "hour", "update_time", "create_time", "team__create_time"]
|
||||
|
||||
@action(methods=["post"], detail=False, perms_map={"post": "*"}, serializer_class=EnStatAnaSerializer)
|
||||
def analyze(self, request, *args, **kwargs):
|
||||
|
|
Loading…
Reference in New Issue