Use empty string for "missing" department name, for ordering worksheet

that way the sorting works as expected (i.e. for python3)
This commit is contained in:
Lance Edgar 2019-01-23 13:23:04 -06:00
parent 595f857aa1
commit 4b9394fe6b

View file

@ -138,7 +138,7 @@ class OrderingBatchView(PurchasingBatchView):
departments.setdefault(department.uuid, department)
else:
if None not in departments:
department = Object(name=None, number=None)
department = Object(name='', number=None)
departments[None] = department
department = departments[None]