mirror of
https://github.com/lemeow125/DocManagerBackend.git
synced 2025-02-23 06:28:15 +08:00
16 lines
432 B
Python
16 lines
432 B
Python
from django.contrib import admin
|
|
from unfold.admin import ModelAdmin
|
|
from .models import Notification
|
|
from unfold.contrib.filters.admin import RangeDateFilter
|
|
|
|
# Register your models here.
|
|
|
|
|
|
@admin.register(Notification)
|
|
class NotificationAdmin(ModelAdmin):
|
|
search_fields = ["id"]
|
|
list_display = ["id", "content", "type", "timestamp", "audience", "client"]
|
|
|
|
list_filter = [
|
|
("timestamp", RangeDateFilter),
|
|
]
|