Fix Mail and Mailinglist `__init__`
This commit is contained in:
parent
37c9183c1e
commit
770c6c9c9b
|
@ -170,10 +170,15 @@ class MailService(OrchestraModel):
|
|||
verbose_name = _('Mail addresses')
|
||||
description = _('Litle description of what to be expected in this section to aid the user. Even a link to more help if there is one available.')
|
||||
fields = ('mail_address', 'aliases', 'type', 'type_detail')
|
||||
param_defaults = {}
|
||||
|
||||
FORWARD = 'forward'
|
||||
MAILBOX = 'mailbox'
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
self.data = kwargs
|
||||
super().__init__(**kwargs)
|
||||
|
||||
@property
|
||||
def aliases(self):
|
||||
return [
|
||||
|
@ -213,6 +218,10 @@ class MailinglistService(OrchestraModel):
|
|||
'admin_email': None,
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
self.data = kwargs
|
||||
super().__init__(**kwargs)
|
||||
|
||||
@property
|
||||
def status(self):
|
||||
# TODO(@slamora): where retrieve if the list is active?
|
||||
|
|
Loading…
Reference in New Issue