mirror of
https://github.com/Hopiu/django-notifications.git
synced 2026-04-19 04:31:03 +00:00
Adding filters and displays to model admin
This commit is contained in:
parent
38f9b16997
commit
3dae324d5e
1 changed files with 3 additions and 1 deletions
|
|
@ -4,6 +4,8 @@ from django.contrib import admin
|
|||
from .models import Notification
|
||||
|
||||
class NotificationAdmin(admin.ModelAdmin):
|
||||
pass
|
||||
list_display = ('recipient', 'actor',
|
||||
'level', 'target', 'unread', 'public')
|
||||
list_filter = ('level', 'unread', 'public', 'timestamp', )
|
||||
|
||||
admin.site.register(Notification, NotificationAdmin)
|
||||
|
|
|
|||
Loading…
Reference in a new issue