mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-22 04:19:26 +02:00
fixing tests - thanks for the help Rachid!
This commit is contained in:
parent
dc3509c7d6
commit
073ff94c3b
1 changed files with 3 additions and 4 deletions
|
@ -218,10 +218,6 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView):
|
||||||
del self.storage
|
del self.storage
|
||||||
self.storage["domain_request_id"] = kwargs["id"]
|
self.storage["domain_request_id"] = kwargs["id"]
|
||||||
|
|
||||||
# refresh step_history to ensure we don't erroneously unlock unfinished
|
|
||||||
# steps just because we visited it
|
|
||||||
self.storage["step_history"] = self.db_check_for_unlocking_steps()
|
|
||||||
|
|
||||||
# if accessing this class directly, redirect to either to an acknowledgement
|
# if accessing this class directly, redirect to either to an acknowledgement
|
||||||
# page or to the first step in the processes (if an edit rather than a new request);
|
# page or to the first step in the processes (if an edit rather than a new request);
|
||||||
# subclasseswill NOT be redirected. The purpose of this is to allow code to
|
# subclasseswill NOT be redirected. The purpose of this is to allow code to
|
||||||
|
@ -236,6 +232,9 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView):
|
||||||
else:
|
else:
|
||||||
return self.goto(self.steps.first)
|
return self.goto(self.steps.first)
|
||||||
|
|
||||||
|
# refresh step_history to ensure we don't erroneously unlock unfinished
|
||||||
|
# steps just because we visited it
|
||||||
|
self.storage["step_history"] = self.db_check_for_unlocking_steps()
|
||||||
context = self.get_context_data()
|
context = self.get_context_data()
|
||||||
self.steps.current = current_url
|
self.steps.current = current_url
|
||||||
context["forms"] = self.get_forms()
|
context["forms"] = self.get_forms()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue