2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-03 22:08:49 +00:00

Pep goes the weasel

This commit is contained in:
Oliver Walters 2017-03-28 23:41:05 +11:00
parent 7ce5a9a7e5
commit 433dc7b3e3
4 changed files with 9 additions and 11 deletions

View File

@ -53,8 +53,8 @@ class ProjectPart(models.Model):
overage_type = models.IntegerField( overage_type = models.IntegerField(
default=1, default=1,
choices=[ choices=[
(OVERAGE_PERCENT, "Percent"), (OVERAGE_PERCENT, "Percent"),
(OVERAGE_ABSOLUTE, "Absolute") (OVERAGE_ABSOLUTE, "Absolute")
]) ])
def __str__(self): def __str__(self):

View File

@ -10,5 +10,4 @@ def index(request):
return render(request, 'stock/index.html', return render(request, 'stock/index.html',
{'warehouses': warehouses {'warehouses': warehouses
} })
)

View File

@ -54,7 +54,6 @@ class SupplierPriceBreak(models.Model):
currency = models.CharField(max_length=10, currency = models.CharField(max_length=10,
blank=True) blank=True)
def __str__(self): def __str__(self):
return "{mpn} - {cost}{currency} @ {quan}".format( return "{mpn} - {cost}{currency} @ {quan}".format(
mpn=part.MPN, mpn=part.MPN,

View File

@ -38,12 +38,12 @@ class UniquePart(models.Model):
status = models.IntegerField(default=PART_IN_PROGRESS, status = models.IntegerField(default=PART_IN_PROGRESS,
choices=[ choices=[
(PART_IN_PROGRESS, "In progress"), (PART_IN_PROGRESS, "In progress"),
(PART_IN_STOCK, "In stock"), (PART_IN_STOCK, "In stock"),
(PART_SHIPPED, "Shipped"), (PART_SHIPPED, "Shipped"),
(PART_RETURNED, "Returned"), (PART_RETURNED, "Returned"),
(PART_DAMAGED, "Damaged"), (PART_DAMAGED, "Damaged"),
(PART_DESTROYED, "Destroyed"), (PART_DESTROYED, "Destroyed"),
]) ])
def __str__(self): def __str__(self):