refactor admin into several files

This commit is contained in:
Tobias Brunner 2025-05-26 11:33:04 +02:00
parent d9a04655ed
commit a3cf1cc590
No known key found for this signature in database
7 changed files with 340 additions and 184 deletions

View file

@ -0,0 +1,15 @@
"""
Admin classes for lead management
"""
from django.contrib import admin
from ..models import Lead
@admin.register(Lead)
class LeadAdmin(admin.ModelAdmin):
"""Admin configuration for Lead model"""
list_display = ("name", "company", "created_at", "odoo_lead_id")
search_fields = ("name", "company")