上一提交的bug

This commit is contained in:
caoqianming 2022-01-26 08:44:39 +08:00
parent 47804a0835
commit 04b864e72f
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ class ResourceViewSet(GenericViewSet):
res.append({'id':m['material__id'], 'name':m['material__name'],
'type':m['material__type'], 'number':m['material__number'],
'count':m['count']*i['count'], 'inv_count':m['material__count'],
'count_safe':'material__count_safe'})
'count_safe':m['material__count_safe']})
return Response(res)
@action(methods=['post'], detail=False, perms_map={'post':'*'}, serializer_class=ResourceCalListSerializer)