2021-08-17 10:50:15 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
|
|
|
from django.db.models import TextChoices
|
2023-07-24 03:52:25 +00:00
|
|
|
from django.utils.translation import gettext_lazy as _
|
2021-08-17 10:50:15 +00:00
|
|
|
|
|
|
|
TICKET_DETAIL_URL = '/ui/#/tickets/tickets/{id}'
|
|
|
|
|
|
|
|
|
|
|
|
class SystemOrOrgRole(TextChoices):
|
|
|
|
SYSTEM_ADMIN = 'system_admin', _('System administrator')
|
|
|
|
SYSTEM_AUDITOR = 'system_auditor', _('System auditor')
|
|
|
|
ORG_ADMIN = 'org_admin', _('Organization administrator')
|
|
|
|
ORG_AUDITOR = 'org_auditor', _("Organization auditor")
|
|
|
|
USER = 'user', _('User')
|
|
|
|
|
|
|
|
|
|
|
|
class PasswordStrategy(TextChoices):
|
|
|
|
email = 'email', _('Reset link will be generated and sent to the user')
|
|
|
|
custom = 'custom', _('Set password')
|