Pregatire pentru productie si adaugare whitenoise

This commit is contained in:
2026-09-07 14:44:20 +03:00
parent 3649b0126d
commit 13b86106ce
8 changed files with 142 additions and 25 deletions
+5
View File
@@ -557,6 +557,9 @@ def handover_protocol_form(request, pk=None):
def dashboard_view(request):
# --- Coloana 1: Sumar Inventar (Înlocuitor temporar pt. Tichete) ---
total_computers = Computer.objects.count()
total_monitors = Monitor.objects.count()
total_peripherals = Peripheral.objects.count()
unassigned_computers = Computer.objects.filter(assigned_to__isnull=True)
unassigned_monitors = Monitor.objects.filter(assigned_to__isnull=True)
@@ -578,6 +581,8 @@ def dashboard_view(request):
context = {
"total_computers": total_computers,
"total_monitors": total_monitors,
"total_peripherals": total_peripherals,
"unassigned_computers": unassigned_computers,
"unassigned_monitors": unassigned_monitors,
"activity_log": activity_log,