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']