20 lines
796 B
Python
20 lines
796 B
Python
from django.contrib import admin
|
|
|
|
from .models import DigestOutbox, ReminderOutbox
|
|
|
|
|
|
@admin.register(DigestOutbox)
|
|
class DigestOutboxAdmin(admin.ModelAdmin):
|
|
list_display = ("profile", "scheduled_for", "recipient", "status", "sent_at")
|
|
list_filter = ("status", "profile")
|
|
search_fields = ("recipient", "subject", "dedupe_key")
|
|
readonly_fields = ("payload", "dedupe_key", "created_at", "updated_at")
|
|
|
|
|
|
@admin.register(ReminderOutbox)
|
|
class ReminderOutboxAdmin(admin.ModelAdmin):
|
|
list_display = ("profile", "reminder_type", "scheduled_for", "recipient", "status", "sent_at")
|
|
list_filter = ("status", "reminder_type", "profile")
|
|
search_fields = ("recipient", "subject", "dedupe_key", "payload")
|
|
readonly_fields = ("payload", "dedupe_key", "created_at", "updated_at")
|