mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-25 18:43:49 +02:00
updated tests
This commit is contained in:
parent
2ced462f94
commit
e0df3ed453
2 changed files with 15 additions and 5 deletions
|
@ -62,7 +62,7 @@ class UserProfileView(UserProfilePermissionView, FormMixin):
|
|||
|
||||
# Set the profile_back_button_text based on the redirect parameter
|
||||
if kwargs.get("redirect") == "domain-request:":
|
||||
context["profile_back_button_text"] = "Go back to your request"
|
||||
context["profile_back_button_text"] = "Go back to your domain request"
|
||||
else:
|
||||
context["profile_back_button_text"] = "Go to manage your domains"
|
||||
|
||||
|
@ -159,7 +159,7 @@ class FinishProfileSetupView(UserProfileView):
|
|||
|
||||
# Get the current form and validate it
|
||||
if form.is_valid():
|
||||
self.redirect_page = True
|
||||
self.redirect_page = False
|
||||
if "contact_setup_save_button" in request.POST:
|
||||
# Logic for when the 'Save' button is clicked, which indicates
|
||||
# user should stay on this page
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue