Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Nov 15, 2024
1 parent f028738 commit 663d198
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uniticket/uni_ticket/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1224,9 +1224,9 @@ def get_ticket_per_structure(structure,
if taken_by:
q_base &= Q(taken_by=taken_by)

ordering_list = ["ticket__priority", "-ticket__created"]
ordering_list = ["priority", "-created"]
if not priority_first:
ordering_list.remove("ticket__priority")
ordering_list.remove("priority")

ticket_assignments = TicketAssignment.objects\
.filter(
Expand Down

0 comments on commit 663d198

Please sign in to comment.