updated middleware, started on conditional modal

This commit is contained in:
David Kennedy 2024-06-06 16:27:24 -04:00
parent f468e6cd6e
commit ff7a745ffa
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
3 changed files with 90 additions and 4 deletions

View file

@ -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