mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-25 10:33:50 +02:00
Merge branch 'main' into meoward/2247-user-contact
This commit is contained in:
commit
d1a390cec9
15 changed files with 392 additions and 127 deletions
|
@ -1,5 +1,4 @@
|
|||
"""Views for a User Profile.
|
||||
|
||||
"""
|
||||
|
||||
import logging
|
||||
|
@ -106,6 +105,7 @@ class UserProfileView(UserProfilePermissionView, FormMixin):
|
|||
"""If the form is invalid, conditionally display an additional error."""
|
||||
if hasattr(self.user, "finished_setup") and not self.user.finished_setup:
|
||||
messages.error(self.request, "Before you can manage your domain, we need you to add contact information.")
|
||||
form.initial["redirect"] = form.data.get("redirect")
|
||||
return super().form_invalid(form)
|
||||
|
||||
def form_valid(self, form):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue