website/conservancy/contacts/admin.py

9 lines
240 B
Python

from django.contrib import admin
from .models import Unsubscription
@admin.register(Unsubscription)
class UnsubscriptionAdmin(admin.ModelAdmin):
list_display = ['created', 'email', 'mailout']
search_fields = ['email', 'mailout']