Document open fix
* fixes a bug in opening a document
This commit is contained in:
@@ -113,7 +113,7 @@ def get_document_view(request: HttpRequest, id: str):
|
||||
|
||||
"""
|
||||
doc = get_object_or_404(Document, id=id)
|
||||
return FileResponse(doc.document, as_attachment=True)
|
||||
return FileResponse(doc.file, as_attachment=True)
|
||||
|
||||
|
||||
@login_required
|
||||
|
||||
Reference in New Issue
Block a user