mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 20:18:38 +02:00
Add comment on dispatch
This commit is contained in:
parent
059a99aca1
commit
54c532f3b2
1 changed files with 10 additions and 1 deletions
|
@ -108,7 +108,16 @@ class ContactProfileSetupView(ContactFormBaseView):
|
|||
@waffle_flag('profile_feature')
|
||||
@method_decorator(csrf_protect)
|
||||
def dispatch(self, request, *args, **kwargs):
|
||||
|
||||
"""
|
||||
Handles dispatching of the view, applying CSRF protection and checking the 'profile_feature' flag.
|
||||
|
||||
This method sets the redirect type based on the 'redirect' query parameter,
|
||||
defaulting to BACK_TO_SELF if not provided.
|
||||
It updates the session with the redirect view name if the redirect type is TO_SPECIFIC_PAGE.
|
||||
|
||||
Returns:
|
||||
HttpResponse: The response generated by the parent class's dispatch method.
|
||||
"""
|
||||
# Default redirect type
|
||||
default_redirect = self.RedirectType.BACK_TO_SELF
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue