missing profile_feature context

This commit is contained in:
Rachid Mrad 2024-06-11 16:10:58 -04:00
parent e18c5f581d
commit dfd4e2c372
No known key found for this signature in database

View file

@ -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)