22 lines
489 B
Python
22 lines
489 B
Python
from django.contrib import admin
|
|
|
|
from apps.notifications.models import Notification
|
|
|
|
|
|
@admin.register(Notification)
|
|
class NotificationAdmin(admin.ModelAdmin):
|
|
list_display = (
|
|
"id",
|
|
"event",
|
|
"channel",
|
|
"status",
|
|
"booking",
|
|
"recipient",
|
|
"phone_number",
|
|
"provider",
|
|
"sent_at",
|
|
"created_at",
|
|
)
|
|
list_filter = ("event", "channel", "status", "provider")
|
|
search_fields = ("phone_number", "message")
|