Part model updates

This commit is contained in:
Oliver Walters committed 2017-04-16 01:11:04 +10:00
1 parent d3781427ad
commit 4f6802b9bf
1 file changed
+2
+2
View File
@@ -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):