From 6068e47c9f62903b941268dee5342399e06aae3d Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 7 Dec 2023 22:49:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BC=BA=E5=B0=91=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_server/cms/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test_server/cms/views.py b/test_server/cms/views.py index e04da44..cae3802 100644 --- a/test_server/cms/views.py +++ b/test_server/cms/views.py @@ -90,6 +90,8 @@ class ThresholdViewSet(ModelViewSet): {'put': 'threshold_update'}, {'delete': 'threshold_update'}] queryset = Threshold.objects.filter(is_delete=0) serializer_class = ThresholdSerializer + pagination_class = CommonPagination + filter_backends = [DjangoFilterBackend,SearchFilter, OrderingFilter] search_fields = ['chinese_name','cas', 'compound_cate', 'odor_type'] filterset_fields = ['source']