fix: open ticket counter

This commit is contained in:
2025-06-29 16:36:57 +02:00
parent 65360a95e5
commit f92d34b0a0
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ class HomeView(TemplateView):
context.update(
{
"total_tickets": Ticket.objects.count(),
"open_tickets": Ticket.objects.filter(status="open").count(),
"new_tickets": Ticket.objects.filter(status="new").count(),
"closed_tickets": Ticket.objects.filter(status="closed").count(),
"recent_tickets": Ticket.objects.order_by("-updated_at")[:5],
}