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.
jumpserver/apps/assets/const/web.py

16 lines
549 B

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']
}