Merge branch 'ticket-testing' into 'master'

Reviews enhancements

See merge request LCA2018/symposion_app!64
This commit is contained in:
James Polley 2017-10-13 02:15:06 +00:00
commit f7993de3bb
2 changed files with 7 additions and 2 deletions

View file

@ -61,7 +61,7 @@
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/v/bs/jszip-2.5.0/dt-1.10.16/b-1.4.2/b-html5-1.4.2/b-print-1.4.2/r-2.2.0/datatables.min.js"></script>
<script type="text/javascript">
$("table.table-reviewlist").dataTable({
$("table.table-reviews").dataTable({
"dom": "<'row'<'col-md-3'l><'col-md-3'B><'col-md-4'f>r>t<'row'<'col-md-3'i><'col-md-5'p>>",
"stateSave": true,
"lengthMenu": [[10, 50, 100, -1], [10, 50, 100, "All"]],

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,