-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document how to not trigger a download #81
Conversation
To be used in documentation for issue jazzband#80
Responsive to issue jazzband#80
Hi @quietlyconfident, and thanks for the pull-request! What about the following changes?
|
@@ -61,6 +61,18 @@ Then here is the code to serve "another_file" instead of the default "file": | |||
:language: python | |||
:lines: 1-5, 10-12 | |||
|
|||
*********************************************** | |||
Serving a file inline rather than as a download |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is "attachment" more pertinent than "download" here?
@@ -16,3 +16,8 @@ | |||
deserialized_basename_view = ObjectDownloadView.as_view( | |||
model=Document, | |||
basename_field='basename') | |||
|
|||
#: Serve ``file`` attribute of ``Document`` model, inline rather than as attachment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flake8 reports: "line too long (83 > 79 characters)".
See https://travis-ci.org/benoitbryon/django-downloadview/jobs/18602404#L49
What about #: Serve ``file`` attribute of ``Document`` model, inline (not as attachment).
Or span the comment on 2 lines :)
Hi @quietlyconfident, |
Responsive to Issue #80.