Skip to content

Commit

Permalink
Fixed error with stopped return of pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
miterion committed May 1, 2017
1 parent fb9d040 commit e22595b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/feedback/views/intern/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def generate_letters(request):
data['texlog'] = f.read()
return render(request, 'intern/generate_letters.html', data)

with open(latexpath + templatename + '.pdf', 'r') as f:
with open(latexpath + templatename + '.pdf', 'rb') as f:
response.write(f.read())
return response

Expand Down

0 comments on commit e22595b

Please sign in to comment.