Add memory unit to problem admin
This commit is contained in:
parent
dddaf69fb7
commit
7f3e22e3bf
6 changed files with 175 additions and 134 deletions
|
@ -417,9 +417,7 @@ class ProblemPdfDescriptionView(ProblemMixin, SingleObjectMixin, View):
|
|||
response.content = f.read()
|
||||
|
||||
response["Content-Type"] = "application/pdf"
|
||||
response["Content-Disposition"] = "inline; filename=%s.pdf" % (
|
||||
problem.code,
|
||||
)
|
||||
response["Content-Disposition"] = "inline; filename=%s.pdf" % (problem.code,)
|
||||
return response
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue