Skip to main content

PasswordChangeDoneView

This class provides a view that displays a success message after a user has successfully changed their password. It utilizes a mixin to provide password-related context and renders a specific template to confirm the completion of the password change process.

Attributes

AttributeTypeDescription
template_namestring = registration/password_change_done.htmlThe full path to the template used to render the password change success confirmation page.
titlestring = Password change successfulThe localized title string displayed on the success page indicating that the password change was successful.

Constructor

Signature

def PasswordChangeDoneView() - > null

Methods


dispatch()

def dispatch(
request: [HttpRequest](../../../http/request/httprequest.md?sid=django_http_request_httprequest),
args: any,
kwargs: any
) - > [HttpResponse](../../../http/response/httpresponse.md?sid=django_http_response_httpresponse)

Dispatches the request to the appropriate handler method, ensuring the password change context is applied.

Parameters

NameTypeDescription
request[HttpRequest](../../../http/request/httprequest.md?sid=django_http_request_httprequest)The incoming HTTP request object.
argsanyPositional arguments passed to the view.
kwargsanyKeyword arguments passed to the view.

Returns

TypeDescription
[HttpResponse](../../../http/response/httpresponse.md?sid=django_http_response_httpresponse)The HTTP response rendered by the template view.