Explicit property naming

This commit is contained in:
Sam Splunks 2024-01-22 14:39:53 +00:00
parent 3537ec7447
commit 3e791d98fa
2 changed files with 5 additions and 5 deletions

View File

@ -477,7 +477,7 @@ class Ticket(models.Model):
(DUPLICATE_STATUS, _('Duplicate')),
)
PRIORITY_CHOICES = helpdesk_settings.PRIORITY_CHOICES
PRIORITY_CHOICES = helpdesk_settings.TICKET_PRIORITY_CHOICES
title = models.CharField(
_('Title'),

View File

@ -104,16 +104,16 @@ ALLOWED_URL_SCHEMES = getattr(settings, 'ALLOWED_URL_SCHEMES', (
))
# Ticket priority choices
DEFAULT_PRIORITY_CHOICES = (
DEFAULT_TICKET_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)
TICKET_PRIORITY_CHOICES = getattr(settings,
'HELPDESK_TICKET_PRIORITY_CHOICES',
DEFAULT_TICKET_PRIORITY_CHOICES)
############################
# options for public pages #