Merge pull request #516 from dod-ccpo/multicheckbox_with_other

Multicheckbox with 'other' option
This commit is contained in:
montana-mil
2019-01-07 10:13:31 -05:00
committed by GitHub
10 changed files with 185 additions and 12 deletions

View File

@@ -49,12 +49,20 @@ class ShowTaskOrderWorkflow:
return self._task_order
@property
def task_order_formdata(self):
task_order_dict = self.task_order.to_dictionary()
for field in task_order_dict:
if task_order_dict[field] is None:
task_order_dict[field] = ""
return task_order_dict
@property
def form(self):
if self._form:
pass
elif self.task_order:
self._form = self._section["form"](data=self.task_order.to_dictionary())
self._form = self._section["form"](formdata=self.task_order_formdata)
else:
self._form = self._section["form"]()