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:
parent
595f857aa1
commit
4b9394fe6b
|
@ -138,7 +138,7 @@ class OrderingBatchView(PurchasingBatchView):
|
||||||
departments.setdefault(department.uuid, department)
|
departments.setdefault(department.uuid, department)
|
||||||
else:
|
else:
|
||||||
if None not in departments:
|
if None not in departments:
|
||||||
department = Object(name=None, number=None)
|
department = Object(name='', number=None)
|
||||||
departments[None] = department
|
departments[None] = department
|
||||||
department = departments[None]
|
department = departments[None]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue