Skip to main content

PasswordResetCompleteView

This class provides a view that informs the user that their password has been successfully changed. It renders a success page using a customizable template and includes the application's login URL in the template context for easy navigation.

Attributes

AttributeTypeDescription
template_namestring = registration/password_reset_complete.htmlThe path to the template used to render the password reset confirmation success page.
titlestring = Password reset completeThe localized title string displayed in the page header and browser tab.

Methods


get_context_data()

@classmethod
def get_context_data(
**kwargs: dict
) - > dict

Extends the template context with the application's login URL to allow users to navigate to the sign-in page after a successful password reset.

Parameters

NameTypeDescription
**kwargsdictArbitrary keyword arguments passed to the method to be included in the template context.

Returns

TypeDescription
dictA dictionary containing the template context variables, including the resolved login_url.