Add view to send PDF letter to EDE expert

This commit is contained in:
Claude Paroz 2018-04-12 12:37:17 +02:00
parent 84440ceb2a
commit 3b43477e17
7 changed files with 168 additions and 7 deletions

View file

@ -148,7 +148,9 @@ class StudentAdmin(admin.ModelAdmin):
def examination_actions(self, obj):
if obj.klass.section.name == 'EDE' and obj.klass.level.name == "3":
return format_html(
'<a class="button" href="{}">Courrier pour lexpert</a>&nbsp;'
'<a class="button" href="{}">Mail convocation soutenance</a>',
reverse('print-pdf-to-expert-ede', args=[obj.pk]),
reverse('student-ede-convocation', args=[obj.pk])
)
else: