mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-25 10:33:50 +02:00
wip
This commit is contained in:
parent
01d2c4494f
commit
a1fca00b8f
27 changed files with 392 additions and 250 deletions
|
@ -55,10 +55,8 @@ class UserProfileView(UserProfilePermissionView, FormMixin):
|
|||
return super().dispatch(request, *args, **kwargs)
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
"""Extend get_context_data to include has_profile_feature_flag"""
|
||||
"""Extend get_context_data"""
|
||||
context = super().get_context_data(**kwargs)
|
||||
# This is a django waffle flag which toggles features based off of the "flag" table
|
||||
context["has_profile_feature_flag"] = flag_is_active(self.request, "profile_feature")
|
||||
|
||||
# Set the profile_back_button_text based on the redirect parameter
|
||||
if kwargs.get("redirect") == "domain-request:":
|
||||
|
@ -139,7 +137,7 @@ class FinishProfileSetupView(UserProfileView):
|
|||
base_view_name = "finish-user-profile-setup"
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
"""Extend get_context_data to include has_profile_feature_flag"""
|
||||
"""Extend get_context_data"""
|
||||
context = super().get_context_data(**kwargs)
|
||||
|
||||
# Show back button conditional on user having finished setup
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue