This commit is contained in:
Oliver Walters 2019-05-05 22:35:39 +10:00
parent 9bbcc35959
commit b9e5afa768
2 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ class Build(models.Model):
limit_choices_to={
'buildable': True,
'active': True
},
},
)
title = models.CharField(

View File

@ -467,7 +467,7 @@ class BomItem(models.Model):
limit_choices_to={
'buildable': True,
'active': True,
})
})
# A link to the child item (sub-part)
# Each part will get a reverse lookup field 'used_in'
@ -475,7 +475,7 @@ class BomItem(models.Model):
limit_choices_to={
'consumable': True,
'active': True
})
})
# Quantity required
quantity = models.PositiveIntegerField(default=1, validators=[MinValueValidator(0)])