SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 0e1b15ca authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Add search to Notification admin

parent 802931ee
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ class NotificationAdmin(admin.ModelAdmin): ...@@ -11,6 +11,7 @@ class NotificationAdmin(admin.ModelAdmin):
list_display = ('recipient', 'actor', list_display = ('recipient', 'actor',
'level', 'target', 'unread',) 'level', 'target', 'unread',)
list_filter = ('level', 'unread', 'created',) list_filter = ('level', 'unread', 'created',)
search_fields = ['recipient__last_name', 'verb', 'description']
admin.site.register(Notification, NotificationAdmin) admin.site.register(Notification, NotificationAdmin)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment