mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-13 18:31:10 +01:00
Use the right values to identify priorities.
This commit is contained in:
parent
8095d30e8e
commit
58c2c818f4
@ -376,9 +376,9 @@ class Ticket(models.Model):
|
|||||||
"""
|
"""
|
||||||
Return the boostrap class corresponding to the priority.
|
Return the boostrap class corresponding to the priority.
|
||||||
"""
|
"""
|
||||||
if self.priority == 4:
|
if self.priority == 2:
|
||||||
return "warning"
|
return "warning"
|
||||||
elif self.priority == 5:
|
elif self.priority == 1:
|
||||||
return "danger"
|
return "danger"
|
||||||
else:
|
else:
|
||||||
return ""
|
return ""
|
||||||
|
Loading…
Reference in New Issue
Block a user