Enhance admin interface for result notifications

This commit is contained in:
James Polley 2017-10-13 12:58:26 +11:00
parent 3334469d30
commit 9bf90b411e

View file

@ -17,7 +17,12 @@ admin.site.register(
list_display=['proposal', 'status', 'score', 'vote_count', 'accepted']
)
admin.site.register(ResultNotification)
admin.site.register(
ResultNotification,
list_display=['proposal','timestamp','to_address','subject'],
search_fields = ['proposal__title','to_address','subject'],
readonly_fields = ['proposal','timestamp','template','to_address','from_address','subject','body']
)
admin.site.register(
Review,