polish task order forms

This commit is contained in:
dandds
2018-12-18 16:19:52 -05:00
parent 5cc5b700b7
commit c8da258d33
11 changed files with 164 additions and 46 deletions

View File

@@ -76,7 +76,7 @@ class TaskOrders(object):
def is_section_complete(cls, task_order, section):
if section in TaskOrders.SECTIONS:
for attr in TaskOrders.SECTIONS[section]:
if not getattr(task_order, attr):
if getattr(task_order, attr) is None:
return False
return True