wpm wproduct list bug

This commit is contained in:
caoqianming 2022-01-21 08:59:06 +08:00
parent 14438608b8
commit cb595711fe
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ class WProductViewSet(ListModelMixin, RetrieveModelMixin, GenericViewSet):
"""
perms_map = {'*': '*'}
queryset = WProduct.objects.select_related('step', 'material',
'subproduction_plan', 'warehouse', 'order').prefetch_related('wproduct_child')
'subproduction_plan', 'warehouse', 'to_order').prefetch_related('wproduct_child')
serializer_class = WProductListSerializer
filterset_class = WProductFilterSet
search_fields = ['number']