mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP
This commit is contained in:
parent
9bbcc35959
commit
b9e5afa768
@ -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(
|
||||||
|
@ -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)])
|
||||||
|
Loading…
Reference in New Issue
Block a user