Include the sub_part ID in the BOM hash

This commit is contained in:
Oliver Walters 2019-05-13 18:09:59 +10:00
parent f410957d8d
commit 42bbf95c42

View File

@ -493,6 +493,7 @@ class Part(models.Model):
hash = hashlib.md5('bom seed'.encode())
for item in self.bom_items.all():
hash.update(str(item.sub_part.id).encode())
hash.update(str(item.sub_part.full_name).encode())
hash.update(str(item.quantity).encode())
hash.update(str(item.note).encode())