2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-03 13:58:47 +00:00

More PEP fixes

This commit is contained in:
Oliver Walters 2020-08-16 09:05:16 +10:00
parent 97103207b6
commit e5406cae24

View File

@ -67,7 +67,7 @@ def ExportBom(part, fmt='csv', cascade=False, max_levels=None):
bom_items.append(item)
if item.sub_part.assembly:
if item.sub_part.assembly:
if max_levels is None or level < max_levels:
add_items(item.sub_part.bom_items.all().order_by('id'), level + 1)