diff --git a/ticketsystem/templates/ticketsystem/home.html b/ticketsystem/templates/ticketsystem/home.html index b7a8e14..f893126 100644 --- a/ticketsystem/templates/ticketsystem/home.html +++ b/ticketsystem/templates/ticketsystem/home.html @@ -40,7 +40,7 @@
Tickets insgesamt
-
{{ open_tickets|default:"0" }}
+
{{ new_tickets|default:"0" }}
Offene Tickets
diff --git a/ticketsystem/views.py b/ticketsystem/views.py index 492d931..03540ac 100644 --- a/ticketsystem/views.py +++ b/ticketsystem/views.py @@ -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], }