Ticket #6905: password-reset-override-form.patch

File password-reset-override-form.patch, 820 bytes (added by anonymous, 17 years ago)
  • django/contrib/auth/views.py

     
    6464    return HttpResponseRedirect('%s?%s=%s' % (login_url, redirect_field_name, next))
    6565
    6666def password_reset(request, is_admin_site=False, template_name='registration/password_reset_form.html',
    67         email_template_name='registration/password_reset_email.html'):
     67        email_template_name='registration/password_reset_email.html',
     68        password_reset_form = PasswordResetForm):
    6869    new_data, errors = {}, {}
    69     form = PasswordResetForm()
     70    form = password_reset_form()
    7071    if request.POST:
    7172        new_data = request.POST.copy()
    7273        errors = form.get_validation_errors(new_data)
Back to Top