mirror of
https://github.com/Hopiu/django-notifications.git
synced 2026-05-04 19:44:43 +00:00
Merge pull request #34 from Axelio/master
Adding filters and displays to model admin
This commit is contained in:
commit
e0c7c75349
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