Add a new ExecutionEnvironment model

This commit is contained in:
Jeff Bradberry
2020-06-26 17:01:05 -04:00
committed by Shane McDonald
parent 0af7f046f0
commit 41613ff544
7 changed files with 139 additions and 5 deletions

View File

@@ -61,6 +61,15 @@ class Organization(CommonModel, NotificationFieldsModel, ResourceMixin, CustomVi
blank=True,
related_name='%(class)s_notification_templates_for_approvals'
)
default_environment = models.ForeignKey(
'ExecutionEnvironment',
null=True,
blank=True,
default=None,
on_delete=models.SET_NULL,
related_name='+',
help_text=_('The default execution environment for jobs run by this organization.'),
)
admin_role = ImplicitRoleField(
parent_role='singleton:' + ROLE_SINGLETON_SYSTEM_ADMINISTRATOR,