Fix mailing list component.
This commit is contained in:
parent
8a2d409e32
commit
902ef7a949
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue