base PDF
This commit is contained in:
parent
2d62c40453
commit
061b909488
2 changed files with 103 additions and 20 deletions
|
|
@ -116,7 +116,6 @@ def print_plan_formation(request):
|
|||
domain = Domaine.objects.all().order_by('code')
|
||||
process = Processus.objects.all().order_by('code')
|
||||
pdf.produce(domain, process)
|
||||
pdf.canv.save()
|
||||
|
||||
with open(path, mode='rb') as fh:
|
||||
response = HttpResponse(fh.read(), content_type='application/pdf')
|
||||
|
|
@ -135,8 +134,7 @@ def print_periode_formation(request):
|
|||
modules = context['sem{0}'.format(str(semestre_id))]
|
||||
total = context['tot{0}'.format(str(semestre_id))]
|
||||
pdf.produce_half_year(semestre_id, modules, total)
|
||||
pdf.print_total(context['tot'])
|
||||
pdf.canv.save()
|
||||
#pdf.print_total(context['tot'])
|
||||
|
||||
with open(path, mode='rb') as fh:
|
||||
response = HttpResponse(fh.read(), content_type='application/pdf')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue