2012-09-08 17:29:18 -06:00
|
|
|
from django.contrib import admin
|
|
|
|
|
2017-08-09 10:35:16 +10:00
|
|
|
from symposion.reviews.models import NotificationTemplate, ProposalResult, ResultNotification, Review
|
2012-09-08 17:29:18 -06:00
|
|
|
|
|
|
|
|
2015-06-12 08:07:49 +09:00
|
|
|
admin.site.register(
|
|
|
|
NotificationTemplate,
|
|
|
|
list_display=[
|
|
|
|
'label',
|
|
|
|
'from_address',
|
|
|
|
'subject'
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
admin.site.register(
|
|
|
|
ProposalResult,
|
|
|
|
list_display=['proposal', 'status', 'score', 'vote_count', 'accepted']
|
|
|
|
)
|
2016-09-03 13:16:05 +10:00
|
|
|
|
2017-10-13 12:58:26 +11:00
|
|
|
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']
|
|
|
|
)
|
2017-08-09 10:35:16 +10:00
|
|
|
|
|
|
|
admin.site.register(
|
|
|
|
Review,
|
|
|
|
list_display=[
|
|
|
|
'proposal',
|
|
|
|
'user',
|
|
|
|
'vote',
|
|
|
|
'submitted_at',
|
|
|
|
]
|
|
|
|
)
|