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={ limit_choices_to={
'buildable': True, 'buildable': True,
'active': True 'active': True
}, },
) )
title = models.CharField( title = models.CharField(

View File

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