mirror of https://github.com/jumpserver/jumpserver
20 lines
379 B
Python
20 lines
379 B
Python
from django.db import models
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
from common.db.models import ChoicesMixin
|
|
|
|
|
|
__all__ = ['Category']
|
|
|
|
|
|
class Category(ChoicesMixin, models.TextChoices):
|
|
HOST = 'host', _('Host')
|
|
DEVICE = 'device', _("Device")
|
|
DATABASE = 'database', _("Database")
|
|
CLOUD = 'cloud', _("Cloud service")
|
|
WEB = 'web', _("Web")
|
|
|
|
|
|
|
|
|