periode.pdf

This commit is contained in:
alazo 2017-08-14 07:26:14 +02:00
parent 902c955f8d
commit 776ff9f4fe
4 changed files with 252 additions and 2 deletions

View file

@ -321,7 +321,7 @@ class PeriodePDFView(TemplateView):
def render_to_response(self, context, **response_kwargs):
context = get_context(context)
filename = 'periode.pdf'
filename = 'media/periode.pdf'
pdf = PeriodPDF(filename)
for semestre_id in range(1, 7):
modules = context['sem{0}'.format(str(semestre_id))]