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')
|
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.')
|
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')
|
fields = ('mail_address', 'aliases', 'type', 'type_detail')
|
||||||
|
param_defaults = {}
|
||||||
|
|
||||||
FORWARD = 'forward'
|
FORWARD = 'forward'
|
||||||
MAILBOX = 'mailbox'
|
MAILBOX = 'mailbox'
|
||||||
|
|
||||||
|
def __init__(self, **kwargs):
|
||||||
|
self.data = kwargs
|
||||||
|
super().__init__(**kwargs)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def aliases(self):
|
def aliases(self):
|
||||||
return [
|
return [
|
||||||
|
@ -213,6 +218,10 @@ class MailinglistService(OrchestraModel):
|
||||||
'admin_email': None,
|
'admin_email': None,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def __init__(self, **kwargs):
|
||||||
|
self.data = kwargs
|
||||||
|
super().__init__(**kwargs)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def status(self):
|
def status(self):
|
||||||
# TODO(@slamora): where retrieve if the list is active?
|
# TODO(@slamora): where retrieve if the list is active?
|
||||||
|
|
Loading…
Reference in a new issue