Handle Mailinglist without domain address
This commit is contained in:
parent
5281e9595e
commit
30bb572589
|
@ -301,7 +301,10 @@ class MailinglistService(OrchestraModel):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def address_name(self):
|
def address_name(self):
|
||||||
return "{}@{}".format(self.data['address_name'], self.data['address_domain']['name'])
|
address_domain = self.data['address_domain']
|
||||||
|
if address_domain is None:
|
||||||
|
return self.data['address_name']
|
||||||
|
return "{}@{}".format(self.data['address_name'], address_domain['name'])
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def manager_url(self):
|
def manager_url(self):
|
||||||
|
|
Loading…
Reference in New Issue