mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2024-11-17 12:19:24 +08:00
10 lines
273 B
Python
10 lines
273 B
Python
from unfold.admin import ModelAdmin
|
|
from django.contrib import admin
|
|
from .models import Notification
|
|
|
|
|
|
@admin.register(Notification)
|
|
class NotificationAdmin(ModelAdmin):
|
|
model = Notification
|
|
search_fields = ("id", "content")
|
|
list_display = ["id", "dismissed"]
|