DRF_Template/backend/notifications/admin.py

11 lines
273 B
Python
Raw Normal View History

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']