Ticket #7274: reset_password_site_not_required_r7540.diff
File reset_password_site_not_required_r7540.diff, 914 bytes (added by , 17 years ago) |
---|
-
django/contrib/auth/views.py
74 74 if is_admin_site: 75 75 form.save(domain_override=request.META['HTTP_HOST']) 76 76 else: 77 form.save(email_template_name=email_template_name) 77 if Site._meta.installed: 78 form.save(email_template_name=email_template_name) 79 else: 80 site = RequestSite(request) 81 form.save(domain_override=site.domain,email_template_name=email_template_name) 78 82 return HttpResponseRedirect('%sdone/' % request.path) 79 83 return render_to_response(template_name, {'form': oldforms.FormWrapper(form, new_data, errors)}, 80 84 context_instance=RequestContext(request))