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/category.py

20 lines
379 B

from django.db import models
from django.utils.translation import gettext_lazy as _
2 years ago
from common.db.models import ChoicesMixin
2 years ago
__all__ = ['Category']
2 years ago
class Category(ChoicesMixin, models.TextChoices):
HOST = 'host', _('Host')
DEVICE = 'device', _("Device")
DATABASE = 'database', _("Database")
CLOUD = 'cloud', _("Cloud service")
WEB = 'web', _("Web")