mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 11:23:10 +00:00
Fix compte mail , get_mail si redirection
This commit is contained in:
parent
bf189f4c4f
commit
7bb62daf42
1 changed files with 3 additions and 3 deletions
|
@ -679,10 +679,10 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser,
|
||||||
"""
|
"""
|
||||||
Return the mail address choosen by the user
|
Return the mail address choosen by the user
|
||||||
"""
|
"""
|
||||||
if not OptionalUser.get_cached_value('mail_accounts') or not self.internal_address:
|
if not OptionalUser.get_cached_value('mail_accounts') or not self.internal_address or self.redirection:
|
||||||
return self.external_mail
|
return str(self.external_mail)
|
||||||
else:
|
else:
|
||||||
return self.mail.mailalias_set.get(valeur=self.pseudo)
|
return str(self.mailalias_set.get(valeur=self.pseudo))
|
||||||
|
|
||||||
def get_next_domain_name(self):
|
def get_next_domain_name(self):
|
||||||
"""Look for an available name for a new interface for
|
"""Look for an available name for a new interface for
|
||||||
|
|
Loading…
Reference in a new issue