generated from westfarn/web_django_template
17 lines
413 B
Python
17 lines
413 B
Python
from django.contrib import admin
|
|
|
|
from leads.models import Lead, LeadNote
|
|
|
|
|
|
class LeadNoteInline(admin.TabularInline):
|
|
model = LeadNote
|
|
extra = 0
|
|
|
|
|
|
@admin.register(Lead)
|
|
class LeadAdmin(admin.ModelAdmin):
|
|
list_display = ("contact", "status", "created_at")
|
|
list_filter = ("status",)
|
|
search_fields = ("contact__email", "contact__first_name", "contact__last_name")
|
|
inlines = [LeadNoteInline]
|