diff --git a/osinaweb/osinacore/__pycache__/custom_context.cpython-310.pyc b/osinaweb/osinacore/__pycache__/custom_context.cpython-310.pyc index b3922d31..cae0b7ee 100644 Binary files a/osinaweb/osinacore/__pycache__/custom_context.cpython-310.pyc and b/osinaweb/osinacore/__pycache__/custom_context.cpython-310.pyc differ diff --git a/osinaweb/osinacore/custom_context.py b/osinaweb/osinacore/custom_context.py index e8bfc50b..8da14f85 100644 --- a/osinaweb/osinacore/custom_context.py +++ b/osinaweb/osinacore/custom_context.py @@ -87,6 +87,7 @@ def utilities(request): all_tickets = Ticket.objects.filter(id__in=[ticket.id for ticket in filtered_tickets]).annotate( latest_update_date=Max('ticketupdate__date_added')) + 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') open_tickets = []