diff --git a/studenteval/list_pdf_export.py b/studenteval/list_pdf_export.py index fba4a89..b65c04a 100644 --- a/studenteval/list_pdf_export.py +++ b/studenteval/list_pdf_export.py @@ -7,6 +7,7 @@ def render_to_pdf(template_src, context_dict={}): template = get_template(template_src) html = template.render(context_dict) response = HttpResponse(content_type='application/pdf') + response['Content-Disposition'] = 'filename="Evaluation_étudiant_clerc.pdf"' pdf_status = pisa.CreatePDF(html, dest=response) if pdf_status.err: