mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-25 10:33:50 +02:00
formatted for code readability
This commit is contained in:
parent
ce89649c7b
commit
7a666c536f
3 changed files with 25 additions and 19 deletions
|
@ -78,7 +78,6 @@ class UserProfileView(UserProfilePermissionView, FormMixin):
|
|||
|
||||
return context
|
||||
|
||||
|
||||
def get_success_url(self):
|
||||
"""Redirect to the user's profile page."""
|
||||
|
||||
|
@ -101,7 +100,7 @@ class UserProfileView(UserProfilePermissionView, FormMixin):
|
|||
return self.form_valid(form)
|
||||
else:
|
||||
return self.form_invalid(form)
|
||||
|
||||
|
||||
def form_invalid(self, form):
|
||||
"""If the form is invalid, conditionally display an additional error."""
|
||||
if hasattr(self.user, "finished_setup") and not self.user.finished_setup:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue