Part model updates
This commit is contained in:
parent
d3781427ad
commit
4f6802b9bf
|
|
@ -56,6 +56,8 @@ class Part(models.Model):
|
|||
class Meta:
|
||||
verbose_name = "Part"
|
||||
verbose_name_plural = "Parts"
|
||||
unique_together = (("name", "category"),
|
||||
("IPN", "category"))
|
||||
|
||||
@property
|
||||
def stock(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue