wpm post bug
This commit is contained in:
parent
5beb5026ff
commit
0f229df8f0
|
@ -55,7 +55,7 @@ class WProductViewSet(ListModelMixin, GenericViewSet):
|
||||||
半成品
|
半成品
|
||||||
"""
|
"""
|
||||||
perms_map={'*':'*'}
|
perms_map={'*':'*'}
|
||||||
queryset = WProduct.objects.select_related('p_state', 'm_state').filter(is_hidden=True)
|
queryset = WProduct.objects.select_related('p_state', 'm_state').filter(is_hidden=False)
|
||||||
serializer_class = WProductListSerializer
|
serializer_class = WProductListSerializer
|
||||||
filterset_fields = ['p_state', 'subproduction_plan', 'm_state', 'production_plan', 'p_state__process']
|
filterset_fields = ['p_state', 'subproduction_plan', 'm_state', 'production_plan', 'p_state__process']
|
||||||
search_fields = ['number']
|
search_fields = ['number']
|
||||||
|
|
Loading…
Reference in New Issue