1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-21 01:18:22 +02:00

Fix static files!

This commit is contained in:
Yohann D'ANELLO
2020-05-06 23:43:14 +02:00
parent 2a97dab5b6
commit b93643d0cc
3 changed files with 5 additions and 3 deletions

View File

@ -168,7 +168,7 @@ class DocumentView(LoginRequiredMixin, View):
if not grant:
raise PermissionDenied
return FileResponse(doc.file, content_type="application/pdf")
return FileResponse(doc.file, content_type="application/pdf", filename=str(doc) + ".pdf")
class ProfileListView(AdminMixin, SingleTableView):