@@ -0,0 +1,19 @@
|
||||
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")
|
||||
Reference in New Issue
Block a user