mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-25 18:43:49 +02:00
updated middleware, started on conditional modal
This commit is contained in:
parent
f468e6cd6e
commit
ff7a745ffa
3 changed files with 90 additions and 4 deletions
|
@ -41,6 +41,9 @@ class UserProfileView(UserProfilePermissionView, FormMixin):
|
|||
form = self.form_class(instance=self.object)
|
||||
context = self.get_context_data(object=self.object, form=form)
|
||||
|
||||
if hasattr(self.object, "finished_setup") and not self.object.finished_setup:
|
||||
context["show_confirmation_modal"]
|
||||
|
||||
return_to_request = request.GET.get("return_to_request")
|
||||
if return_to_request:
|
||||
context["return_to_request"] = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue