wproduct增加material_type筛选条件

This commit is contained in:
caoqianming 2021-12-03 09:15:01 +08:00
parent cc6713da25
commit 4c5bbc00b3
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ class WProductViewSet(ListModelMixin, GenericViewSet):
perms_map={'*':'*'}
queryset = WProduct.objects.select_related('step', 'material').filter(is_hidden=False)
serializer_class = WProductListSerializer
filterset_fields = ['step', 'subproduction_plan', 'material', 'step__process', 'act_state']
filterset_fields = ['step', 'subproduction_plan', 'material', 'step__process', 'act_state', 'material__type']
search_fields = ['number']
ordering_fields = ['id']
ordering = ['id']