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.
21 lines
549 B
21 lines
549 B
from django.db import models |
|
from django.utils.translation import ugettext_lazy as _ |
|
|
|
ADMIN = 'Admin' |
|
USER = 'User' |
|
AUDITOR = 'Auditor' |
|
|
|
|
|
class Trigger(models.TextChoices): |
|
manual = 'manual', _('Manual trigger') |
|
timing = 'timing', _('Timing trigger') |
|
|
|
|
|
class Status(models.TextChoices): |
|
ready = 'ready', _('Ready') |
|
pending = 'pending', _("Pending") |
|
running = 'running', _("Running") |
|
success = 'success', _("Success") |
|
failed = 'failed', _("Failed") |
|
error = 'error', _("Error") |
|
canceled = 'canceled', _("Canceled")
|
|
|