Fake task order's expended funds, default task order start and end date to None, fix how task orders are sorted by status

This commit is contained in:
leigh-mil
2019-12-06 16:26:09 -05:00
parent 3fdde78531
commit ac8dd662d1
8 changed files with 51 additions and 27 deletions

View File

@@ -67,10 +67,10 @@ class TaskOrders(BaseDomainClass):
def sort_by_status(cls, task_orders):
by_status = {}
for status in SORT_ORDERING:
by_status[status] = []
by_status[status.value] = []
for task_order in task_orders:
by_status[task_order.status].append(task_order)
by_status[task_order.display_status].append(task_order)
return by_status