Pregatire pentru productie si adaugare whitenoise
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user