Use integer ordering for part quantity

This commit is contained in:
Oliver Walters 2019-06-13 19:12:34 +10:00
parent 15432fd6b7
commit 2fffd874a3

View File

@ -160,7 +160,7 @@ class OrderParts(AjaxView):
ctx = {}
ctx['parts'] = sorted(self.parts, key=lambda part: part.order_quantity, reverse=True)
ctx['parts'] = sorted(self.parts, key=lambda part: int(part.order_quantity), reverse=True)
return ctx