From 9d114fff77ef33b2f7c91c2850a3b340ebedf131 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 31 Jan 2025 11:12:00 +0100 Subject: [PATCH] add lead admin --- hub/services/admin.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hub/services/admin.py b/hub/services/admin.py index 5ede1a5..6b71007 100644 --- a/hub/services/admin.py +++ b/hub/services/admin.py @@ -11,6 +11,7 @@ from .models import ( Service, ServiceOffering, Term, + Lead, ) @@ -166,3 +167,9 @@ class ConsultingPartnerAdmin(admin.ModelAdmin): return "No logo" logo_preview.short_description = "Logo" + + +@admin.register(Lead) +class LeadAdmin(admin.ModelAdmin): + list_display = ("name", "company", "created_at", "odoo_lead_id") + search_fields = ("name", "company")