jumpserver/apps/assets/const/category.py

20 lines
379 B
Python
Raw Normal View History

2022-09-18 16:07:59 +00:00
from django.db import models
from django.utils.translation import gettext_lazy as _
2022-09-19 12:11:55 +00:00
from common.db.models import ChoicesMixin
2022-09-18 16:07:59 +00:00
2022-09-19 12:11:55 +00:00
__all__ = ['Category']
2022-09-18 16:07:59 +00:00
2022-09-19 12:11:55 +00:00
class Category(ChoicesMixin, models.TextChoices):
2022-09-18 16:07:59 +00:00
HOST = 'host', _('Host')
DEVICE = 'device', _("Device")
DATABASE = 'database', _("Database")
CLOUD = 'cloud', _("Cloud service")
WEB = 'web', _("Web")