mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-18 10:29:23 +02:00
missing profile_feature context
This commit is contained in:
parent
e18c5f581d
commit
dfd4e2c372
1 changed files with 6 additions and 3 deletions
|
@ -232,11 +232,14 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView):
|
||||||
# is first in the list of steps.
|
# is first in the list of steps.
|
||||||
if self.__class__ == DomainRequestWizard:
|
if self.__class__ == DomainRequestWizard:
|
||||||
if request.path_info == self.NEW_URL_NAME:
|
if request.path_info == self.NEW_URL_NAME:
|
||||||
# del self.storage
|
|
||||||
# Clear context so the prop getter won't create a request here.
|
# Clear context so the prop getter won't create a request here.
|
||||||
# Creating a request will be handled in the post method for the
|
# Creating a request will be handled in the post method for the
|
||||||
# intro page.
|
# intro page. Only TEMPORARY context needed is has_profile_flag
|
||||||
return render(request, "domain_request_intro.html", context={})
|
has_profile_flag = flag_is_active(self.request, "profile_feature")
|
||||||
|
context_stuff = {
|
||||||
|
"has_profile_feature_flag": has_profile_flag
|
||||||
|
}
|
||||||
|
return render(request, "domain_request_intro.html", context=context_stuff)
|
||||||
else:
|
else:
|
||||||
return self.goto(self.steps.first)
|
return self.goto(self.steps.first)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue