From 4df1ccba28656e35222634acd528ae0589873ba3 Mon Sep 17 00:00:00 2001 From: Laurent Date: Thu, 9 Oct 2025 16:15:13 +0200 Subject: [PATCH] dashboard improvements --- biz/models.py | 2 +- biz/templates/admin/biz/dashboard.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/biz/models.py b/biz/models.py index 9eb0410..f7da7bc 100644 --- a/biz/models.py +++ b/biz/models.py @@ -90,7 +90,7 @@ class Prospect(BaseModel): return Status.NONE def current_activity_type(self): - last_activity = self.activities.exclude(status=None).order_by('-creation_date').first() + last_activity = self.activities.exclude(type=None).order_by('-creation_date').first() if last_activity: return last_activity.type return None diff --git a/biz/templates/admin/biz/dashboard.html b/biz/templates/admin/biz/dashboard.html index f79cc1c..8bddd41 100644 --- a/biz/templates/admin/biz/dashboard.html +++ b/biz/templates/admin/biz/dashboard.html @@ -77,7 +77,7 @@ .prospect-table th:nth-child(1), .prospect-table td:nth-child(1) { - width: 150px; + width: 225px; } .prospect-table th:nth-child(2),