diff --git a/osinaweb/osinacore/__pycache__/views.cpython-310.pyc b/osinaweb/osinacore/__pycache__/views.cpython-310.pyc index d599e550..4a5b9b20 100644 Binary files a/osinaweb/osinacore/__pycache__/views.cpython-310.pyc and b/osinaweb/osinacore/__pycache__/views.cpython-310.pyc differ diff --git a/osinaweb/osinacore/views.py b/osinaweb/osinacore/views.py index e590c920..581d65b5 100644 --- a/osinaweb/osinacore/views.py +++ b/osinaweb/osinacore/views.py @@ -366,7 +366,7 @@ def tickets(request, *args, **kwargs): # If no status is found, assume it's open open_tickets.append(ticket) else: - all_tickets = Ticket.objects.filter(departments__in=request.user.staffprofile.staff_position.department) + all_tickets = Ticket.objects.filter(departments=request.user.staffprofile.staff_position.department) all_tickets_with_update_date = all_tickets.annotate( latest_update_date=Max('ticketupdate__date_added')) all_tickets_ordered = all_tickets_with_update_date.order_by('-latest_update_date')