17 lines
595 B
Python
17 lines
595 B
Python
from django.contrib import admin
|
|
|
|
from .models import Notification
|
|
|
|
|
|
admin.site.site_header = "AirShelf Ops"
|
|
admin.site.site_title = "AirShelf Ops"
|
|
admin.site.index_title = "Operations"
|
|
|
|
|
|
@admin.register(Notification)
|
|
class NotificationAdmin(admin.ModelAdmin):
|
|
list_display = ("title", "team", "recipient", "notification_type", "priority", "is_read", "created_at")
|
|
list_filter = ("notification_type", "priority", "is_read", "archived_at")
|
|
search_fields = ("title", "brief", "body", "source", "dedupe_key")
|
|
readonly_fields = ("created_at", "updated_at", "read_at", "archived_at")
|