add field type of transfer instead of change the name
This commit is contained in:
parent
7d40f5b537
commit
cf4e1df527
|
@ -127,9 +127,7 @@ class LotView(View):
|
||||||
continue
|
continue
|
||||||
for _lot in lots_dump:
|
for _lot in lots_dump:
|
||||||
if _lot['id'] == str(lot.id):
|
if _lot['id'] == str(lot.id):
|
||||||
name = _lot['name']
|
_lot['transfer'] = lot.type_transfer()
|
||||||
type_transfer = lot.type_transfer()
|
|
||||||
_lot['name'] = f'{name} - ({type_transfer})'
|
|
||||||
break
|
break
|
||||||
return lots_dump
|
return lots_dump
|
||||||
|
|
||||||
|
|
Reference in New Issue