Separated email subject for translation

This commit is contained in:
M.Ravi 2017-06-20 23:45:25 +05:30
parent b27342b493
commit c50b2455c2

View file

@ -87,7 +87,7 @@ class CustomUser(AbstractBaseUser, PermissionsMixin):
dcl_from_address = settings.DCL_SUPPORT_FROM_ADDRESS dcl_from_address = settings.DCL_SUPPORT_FROM_ADDRESS
user.is_active = False user.is_active = False
email_data = { email_data = {
'subject': _('Activate your ' + dcl_text + ' account'), 'subject': _('Activate your ') + dcl_text + _(' account'),
'from_address': settings.DCL_SUPPORT_FROM_ADDRESS, 'from_address': settings.DCL_SUPPORT_FROM_ADDRESS,
'to': user.email, 'to': user.email,
'context': {'base_url' : base_url, 'context': {'base_url' : base_url,