Ajout PDF infos CorpContact
This commit is contained in:
parent
f6cc953014
commit
da46061a5a
4 changed files with 29 additions and 2 deletions
|
|
@ -571,6 +571,18 @@ class PrintCompensationForm(PDFBaseView):
|
|||
return super().get(request, *args, **kwargs)
|
||||
|
||||
|
||||
class PrintExpertInfoForm(PDFBaseView):
|
||||
pdf_class = pdf.ExpertInfoForm
|
||||
|
||||
def get_object(self):
|
||||
return CorpContact.objects.get(pk=self.kwargs['pk'])
|
||||
|
||||
def filename(self, obj):
|
||||
return slugify(
|
||||
'{0}_{1}'.format(obj.last_name, obj.first_name)
|
||||
) + f'_Info.pdf'
|
||||
|
||||
|
||||
class PrintExpertEDSCompensationForm(PrintExpertEDECompensationForm):
|
||||
"""
|
||||
Imprime le PDF à envoyer à l'expert EDS en accompagnement du
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue