Pass existing task order to the Form

Passing the existing task order to the Form provides all of the existing
data to the Form. Previously, if a csp
estimate was already uploaded and then the funding page was edited
without changing the upload, the csp estimate was overwritten because
nothing was passed in that field to the form.
This commit is contained in:
leigh-mil 2019-02-01 13:15:47 -05:00
parent 50f0843caf
commit c302ddf2d7

View File

@ -133,7 +133,7 @@ class UpdateTaskOrderWorkflow(ShowTaskOrderWorkflow):
if "unclassified_form" in self._section and not app.config.get("CLASSIFIED") if "unclassified_form" in self._section and not app.config.get("CLASSIFIED")
else "form" else "form"
) )
self._form = self._section[form_type](self.form_data) self._form = self._section[form_type](self.form_data, obj=self.task_order)
@property @property
def form(self): def form(self):