Add Saas api model.

This commit is contained in:
Santiago Lamora 2019-12-06 10:27:18 +01:00
parent 4d49c07ee3
commit 0da97abd3e
2 changed files with 13 additions and 1 deletions

View File

@ -18,7 +18,7 @@ API_PATHS = {
'address-list': 'addresses/',
'mailbox-list': 'mailboxes/',
'mailinglist-list': 'lists/',
# ... TODO (@slamora) complete list of backend URLs
'saas-list': 'saas/',
# other
'payment-source-list': 'payment-sources/',

View File

@ -178,3 +178,15 @@ class MailinglistService(OrchestraModel):
def configure(self):
# TODO(@slamora): build mailtran absolute URL
return format_html('<a href="#TODO">Mailtrain</a>')
class SaasService(OrchestraModel):
api_name = 'saas'
verbose_name = _('Software as a Service (SaaS)')
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.')
param_defaults = {
'name': None,
'service': None,
'is_active': True,
'data': {},
}