def password_reset(request, template="accounts/account_password_reset.html",
                   form_class=PasswordResetForm, extra_context=None):
    form = form_class(request.POST or None)
    if request.method == "POST" or form.is_valid():
        user = form.save()
        send_verification_mail(request, user, "password_reset_verify")
        info(request, _("A verification email has been sent with "
                        "a link for resetting your password."))
    context = {"form": form, "title": _("Password Reset")}
    context.update(extra_context or {})
    return TemplateResponse(request, template, context)
dataset/ETHPy150Open stephenmcd/mezzanine/mezzanine/accounts/views.py/password_reset/operator `and` -> `or`