From 770c6c9c9b7e19ab345585353af0e2e237c7007f Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Tue, 17 Dec 2019 14:10:59 +0100 Subject: [PATCH] Fix Mail and Mailinglist `__init__` --- musician/models.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/musician/models.py b/musician/models.py index 0f924c4..477a371 100644 --- a/musician/models.py +++ b/musician/models.py @@ -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?