2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-13 08:21:26 +00:00

Added some more BomItem tests

This commit is contained in:
Oliver Walters
2019-05-05 00:00:30 +10:00
parent c0e3007e4f
commit e2ced18753
2 changed files with 20 additions and 3 deletions

View File

@ -477,8 +477,8 @@ class BomItem(models.Model):
unique_together = ('part', 'sub_part')
def __str__(self):
return "{par} -> {child} ({n})".format(
par=self.part.name,
return "{n} x {child} to make {parent}".format(
parent=self.part.name,
child=self.sub_part.name,
n=self.quantity)