Coverage for modules\notifications\admin.py: 100%
7 statements
« prev ^ index » next coverage.py v7.16.0, created at 2026-09-05 09:19 +0800
« prev ^ index » next coverage.py v7.16.0, created at 2026-09-05 09:19 +0800
1from django.contrib import admin
2from .models import Notification
4@admin.register(Notification)
5class NotificationAdmin(admin.ModelAdmin):
6 list_display = ('title', 'type', 'recipient', 'is_read', 'created_at', 'tenant_id')
7 list_filter = ('type', 'is_read', 'tenant_id')
8 search_fields = ('title', 'message')