ajout de system impression team_pdf

This commit is contained in:
Ambulance Clerc
2022-09-26 10:44:57 +02:00
parent 708c1a5bc5
commit 58a789643d
3 changed files with 59 additions and 5 deletions

View File

@@ -75,7 +75,7 @@ def view_team_pdf_caldav(request):
start = datetime.strptime(request.GET['dt'], "%d.%m.%Y")
myClient = cls_caldav_client()
#render_pdf(o_caldav, start)
render_pdf(o_caldav, caldavClient=myClient, date=start)
return FileResponse(open('test.pdf', 'rb'), as_attachment=False, content_type='application/pdf')