mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
549 B
16 lines
549 B
2 years ago
|
|
||
|
class WebTypes(ConstrainMixin, ChoicesMixin, models.TextChoices):
|
||
|
WEBSITE = 'website', _('General website')
|
||
|
|
||
|
def category_constrains(self):
|
||
|
return {
|
||
|
'domain_enabled': False,
|
||
|
'su_enabled': False,
|
||
|
'ping_enabled': False,
|
||
|
'gather_facts_enabled': False,
|
||
|
'verify_account_enabled': False,
|
||
|
'change_password_enabled': False,
|
||
|
'create_account_enabled': False,
|
||
|
'gather_accounts_enabled': False,
|
||
|
'_protocols': ['http', 'https']
|
||
|
}
|