Fixed __proxy__ to string conversion issue

This commit is contained in:
M.Ravi 2017-06-23 01:42:37 +05:30
parent 82ebafa5f5
commit 165dfa49ab

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': str(_('Activate your ')) + dcl_text + str(_(' 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,