Add compensation form PDF for EDS section

This commit is contained in:
Claude Paroz 2019-10-04 15:36:55 +02:00
parent bfb5609c9a
commit e0cd5db7fb
7 changed files with 212 additions and 88 deletions

View file

@ -105,7 +105,7 @@ class StudentAdmin(admin.ModelAdmin):
ordering = ('last_name', 'first_name')
list_filter = (('archived', ArchivedListFilter), ('klass', KlassRelatedListFilter))
search_fields = ('last_name', 'first_name', 'pcode', 'city', 'klass__name')
autocomplete_fields = ('corporation', 'instructor', 'supervisor', 'mentor', 'expert')
autocomplete_fields = ('corporation', 'instructor', 'supervisor', 'mentor', 'expert', 'expert_ep')
readonly_fields = (
'report_sem1_sent', 'report_sem2_sent',
'examination_actions', 'examination_ep_actions',
@ -180,7 +180,7 @@ class StudentAdmin(admin.ModelAdmin):
return format_html(
'<a class="button" href="{}">Courrier pour lexpert</a>&nbsp;'
'<a class="button" href="{}">Mail convocation soutenance</a>&nbsp;',
'', #reverse('print-expert-compens-eds', args=[obj.pk]),
reverse('print-expert-compens-eds', args=[obj.pk]),
reverse('student-eds-convocation', args=[obj.pk]),
)
else: