2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 04:25:42 +00:00

PEP fixes

This commit is contained in:
Oliver Walters
2019-05-21 00:54:48 +10:00
parent 49ed17db56
commit ca9d6e6e25
2 changed files with 8 additions and 16 deletions

View File

@ -632,7 +632,6 @@ class Part(models.Model):
return (min_price, max_price)
def get_bom_price_range(self, quantity=1):
""" Return the price range of the BOM for this part.
Adds the minimum price for all components in the BOM.
@ -690,7 +689,7 @@ class Part(models.Model):
return (
min(buy_price_range[0], bom_price_range[0]),
max(buy_price_range[1], bom_price_range[1])
)
)
def deepCopy(self, other, **kwargs):
""" Duplicates non-field data from another part.