Place a domain_override to force Django to use edx.org instead of example.com.

Django hardcodes the subject line for password reset emails. You're supposed
to be able to override it with a properly named template, but that didn't
make it into 1.3.1 (which is what we're deploying on now). We're not using
the Sites framework at this time, so this was the "fix".
This commit is contained in:
David Ormsbee
2012-07-23 23:41:45 -04:00
parent 8db59825f1
commit 614f4540d0

View File

@@ -402,7 +402,8 @@ def password_reset(request):
if form.is_valid():
form.save( use_https = request.is_secure(),
from_email = settings.DEFAULT_FROM_EMAIL,
request = request )
request = request,
domain_override = "edx.org" )
return HttpResponse(json.dumps({'success':True,
'value': render_to_string('registration/password_reset_done.html', {})}))
else: