2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 10:05:39 +00:00

Improved admin view for part

This commit is contained in:
Oliver Walters
2017-03-28 17:49:01 +11:00
parent 5420f83114
commit 492c651324
3 changed files with 17 additions and 11 deletions

View File

@ -20,6 +20,8 @@ class Part(models.Model):
description = models.CharField(max_length=250, blank=True)
IPN = models.CharField(max_length=100, blank=True)
category = models.ForeignKey(PartCategory, on_delete=models.CASCADE)
minimum_stock = models.IntegerField(default=0)
units = models.CharField(max_length=20, default="pcs", blank=True)
def __str__(self):
if self.IPN: