From 0da97abd3ec4995602a7626a7e117c67b709227f Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Fri, 6 Dec 2019 10:27:18 +0100 Subject: [PATCH] Add Saas api model. --- musician/api.py | 2 +- musician/models.py | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/musician/api.py b/musician/api.py index 048f34e..d712a24 100644 --- a/musician/api.py +++ b/musician/api.py @@ -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/', diff --git a/musician/models.py b/musician/models.py index 268a3b1..ba7192f 100644 --- a/musician/models.py +++ b/musician/models.py @@ -178,3 +178,15 @@ class MailinglistService(OrchestraModel): def configure(self): # TODO(@slamora): build mailtran absolute URL return format_html('Mailtrain') + + +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': {}, + }