Use the right values to identify priorities.

This commit is contained in:
Antoine Nguyen 2014-09-22 10:01:08 +02:00
parent 8095d30e8e
commit 58c2c818f4

View File

@ -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 ""