mirror of
https://github.com/lemeow125/DocManagerBackend.git
synced 2025-02-23 22:48:14 +08:00
17 lines
432 B
Python
17 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),
|
||
|
]
|