aboutsummaryrefslogtreecommitdiffstats
path: root/src/workflow/models.py
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2019-07-08 14:36:23 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-07-08 14:36:23 +0000
commit35c8640a32b7c6b3b35d68367668898fdfd7d423 (patch)
tree17e3c1e5ac3812e310da3c71195aca1f5096749c /src/workflow/models.py
parent42088a2387cf82d666ec23b8671d55d2b27d5c1f (diff)
parentbf45f8f4d05d9842b285013cfcb0a0235ce51c5d (diff)
Merge "Hacking on AJAX"
Diffstat (limited to 'src/workflow/models.py')
-rw-r--r--src/workflow/models.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/workflow/models.py b/src/workflow/models.py
index 866f442..0521165 100644
--- a/src/workflow/models.py
+++ b/src/workflow/models.py
@@ -318,6 +318,9 @@ class Confirmation_Step(WorkflowStep):
default_flow_style=False
).strip()
+ if self.valid == WorkflowStepStatus.VALID:
+ context["confirm_succeeded"] = "true"
+
return context
def flush_to_db(self):
@@ -329,9 +332,7 @@ class Confirmation_Step(WorkflowStep):
form = ConfirmationForm(post_data)
if form.is_valid():
data = form.cleaned_data['confirm']
- context = self.get_context()
if data == "True":
- context["bypassed"] = "true"
errors = self.flush_to_db()
if errors:
self.set_invalid("ERROR OCCURRED: " + errors)
@@ -339,7 +340,6 @@ class Confirmation_Step(WorkflowStep):
self.set_valid("Confirmed")
elif data == "False":
- context["bypassed"] = "true"
self.set_valid("Canceled")
else:
self.set_invalid("Bad Form Contents")