Corrected typo in part.models, simplified MakeBomTemplate function

This commit is contained in:
eeintech 2020-07-05 16:25:05 -05:00
parent 3d7676e292
commit 46586ba960
2 changed files with 3 additions and 3 deletions

View File

@ -30,8 +30,8 @@ def MakeBomTemplate(fmt):
if not IsValidBOMFormat(fmt):
fmt = 'csv'
query = BomItem.objects.filter(pk=None)
dataset = BomItemResource().export(queryset=query)
# query = BomItem.objects.filter(pk=None)
dataset = BomItemResource().export()
data = dataset.export(fmt)

View File

@ -1355,7 +1355,7 @@ class PartParameter(models.Model):
class BomItem(models.Model):
""" A BomItem links a part to its component items.
A part can have a BOM (bill of materials) which defines
which parts are required (and in what quatity) to make it.
which parts are required (and in what quantity) to make it.
Attributes:
part: Link to the parent part (the part that will be produced)