wproduct增加material_type筛选条件
This commit is contained in:
parent
cc6713da25
commit
4c5bbc00b3
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue