Fix mailing list component.

This commit is contained in:
Santiago Lamora 2019-11-20 17:41:15 +01:00
parent 8a2d409e32
commit 902ef7a949
1 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,8 @@ class OrchestraModel:
c = cls(**json_data) c = cls(**json_data)
c._json = data c._json = data
# TODO(@slamora) remove/replace by private variable to ovoid name collisions
c.data = data
return c return c
@ -99,6 +101,10 @@ class MailinglistService(OrchestraModel):
api_name = 'mailinglist' api_name = 'mailinglist'
verbose_name = 'Mailing list' verbose_name = 'Mailing list'
fields = ('name', 'status', 'address_name', 'admin_email', 'configure') fields = ('name', 'status', 'address_name', 'admin_email', 'configure')
param_defaults = {
'name': None,
'admin_email': None,
}
@property @property
def status(self): def status(self):