mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-01-23 14:28:55 +01:00
Customization of Ticket PRIORITY_CHOICES in project settings
This commit is contained in:
parent
a50065e768
commit
3537ec7447
@ -477,13 +477,7 @@ class Ticket(models.Model):
|
|||||||
(DUPLICATE_STATUS, _('Duplicate')),
|
(DUPLICATE_STATUS, _('Duplicate')),
|
||||||
)
|
)
|
||||||
|
|
||||||
PRIORITY_CHOICES = (
|
PRIORITY_CHOICES = helpdesk_settings.PRIORITY_CHOICES
|
||||||
(1, _('1. Critical')),
|
|
||||||
(2, _('2. High')),
|
|
||||||
(3, _('3. Normal')),
|
|
||||||
(4, _('4. Low')),
|
|
||||||
(5, _('5. Very Low')),
|
|
||||||
)
|
|
||||||
|
|
||||||
title = models.CharField(
|
title = models.CharField(
|
||||||
_('Title'),
|
_('Title'),
|
||||||
|
@ -6,6 +6,7 @@ Default settings for django-helpdesk.
|
|||||||
from django import forms
|
from django import forms
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.core.exceptions import ImproperlyConfigured
|
from django.core.exceptions import ImproperlyConfigured
|
||||||
|
from django.utils.translation import gettext, gettext_lazy as _
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import warnings
|
import warnings
|
||||||
@ -101,6 +102,19 @@ HELPDESK_AUTO_SUBSCRIBE_ON_TICKET_RESPONSE = getattr(settings,
|
|||||||
ALLOWED_URL_SCHEMES = getattr(settings, 'ALLOWED_URL_SCHEMES', (
|
ALLOWED_URL_SCHEMES = getattr(settings, 'ALLOWED_URL_SCHEMES', (
|
||||||
'file', 'ftp', 'ftps', 'http', 'https', 'irc', 'mailto', 'sftp', 'ssh', 'tel', 'telnet', 'tftp', 'vnc', 'xmpp',
|
'file', 'ftp', 'ftps', 'http', 'https', 'irc', 'mailto', 'sftp', 'ssh', 'tel', 'telnet', 'tftp', 'vnc', 'xmpp',
|
||||||
))
|
))
|
||||||
|
|
||||||
|
# Ticket priority choices
|
||||||
|
DEFAULT_PRIORITY_CHOICES = (
|
||||||
|
(1, _('1. Critical')),
|
||||||
|
(2, _('2. High')),
|
||||||
|
(3, _('3. Normal')),
|
||||||
|
(4, _('4. Low')),
|
||||||
|
(5, _('5. Very Low')),
|
||||||
|
)
|
||||||
|
PRIORITY_CHOICES = getattr(settings,
|
||||||
|
'PRIORITY_CHOICES',
|
||||||
|
DEFAULT_PRIORITY_CHOICES)
|
||||||
|
|
||||||
############################
|
############################
|
||||||
# options for public pages #
|
# options for public pages #
|
||||||
############################
|
############################
|
||||||
|
Loading…
Reference in New Issue
Block a user