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(
default=1,
choices=[
(OVERAGE_PERCENT, "Percent"),
(OVERAGE_ABSOLUTE, "Absolute")
(OVERAGE_PERCENT, "Percent"),
(OVERAGE_ABSOLUTE, "Absolute")
])
def __str__(self):

View File

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

View File

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

View File

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