feat: enstat2增加筛选条件

This commit is contained in:
caoqianming 2023-08-23 12:58:26 +08:00
parent beb9624548
commit e907b152f3
1 changed files with 1 additions and 1 deletions

View File

@ -79,4 +79,4 @@ class EnStat2ViewSet(ListModelMixin, CustomGenericViewSet):
perms_map = {'get': '*'}
queryset = EnStat2.objects.all()
serializer_class = EnStat2Serializer
filterset_fields = ['year_s', 'month_s']
filterset_fields = ['year_s', 'month_s', 'day_s', 'type']