Fix invitation e-mail to use http:// in non-deployed case.

(imported from commit af68962c078036ce0fe4f37feaec6b43766b3059)
This commit is contained in:
David Roe
2015-08-18 19:51:48 -07:00
committed by Tim Abbott
parent 2ffd022a5f
commit e61de3e052

View File

@@ -34,8 +34,10 @@ def generate_key():
return generate_random_token(40)
def generate_activation_url(key):
return u'https://%s%s' % (settings.EXTERNAL_HOST,
reverse('confirmation.views.confirm', kwargs={'confirmation_key': key}))
return u'%s%s%s' % (settings.EXTERNAL_URI_SCHEME,
settings.EXTERNAL_HOST,
reverse('confirmation.views.confirm',
kwargs={'confirmation_key': key}))
class ConfirmationManager(models.Manager):