上一提交的bug
This commit is contained in:
parent
47804a0835
commit
04b864e72f
|
|
@ -236,7 +236,7 @@ class ResourceViewSet(GenericViewSet):
|
||||||
res.append({'id':m['material__id'], 'name':m['material__name'],
|
res.append({'id':m['material__id'], 'name':m['material__name'],
|
||||||
'type':m['material__type'], 'number':m['material__number'],
|
'type':m['material__type'], 'number':m['material__number'],
|
||||||
'count':m['count']*i['count'], 'inv_count':m['material__count'],
|
'count':m['count']*i['count'], 'inv_count':m['material__count'],
|
||||||
'count_safe':'material__count_safe'})
|
'count_safe':m['material__count_safe']})
|
||||||
return Response(res)
|
return Response(res)
|
||||||
|
|
||||||
@action(methods=['post'], detail=False, perms_map={'post':'*'}, serializer_class=ResourceCalListSerializer)
|
@action(methods=['post'], detail=False, perms_map={'post':'*'}, serializer_class=ResourceCalListSerializer)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue