-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Documentation / ObjectDownloadView without attachment? #80
Comments
You should be able to set ObjectDownloadView.as_view(model=Document, attachment=False) Or in class MySpecialObjectDownloadView(ObjectDownloadView):
attachment = False If the solutions above do not work, then it is a bug.
Agreed! Additional notes about internals:
|
Note: this story looks like #75, where documentation is not obvious about |
To be used in documentation for issue jazzband#80
Responsive to issue jazzband#80
Tagged as "feature". Planned for next release (1.6). |
I'd like to create a view which is just like ObjectDownloadView, but returns the response NOT as an attachment. I've been reading the documentation trying to figure out how to do this, and I see how I could do it by copying a lot of code and changing one flag, but it seems that the point of the Make Your Own View section is that it should be possible to do so in a more DRY manner. Maybe the documentation says how to do this but if so, I don't understand it.
Is it possible to change the settings on the DownloadMixin by passing arguments to ObjectDownloadView? Or otherwise possible to create a new view which inherits everything from ObjectDownloadView but changes the attachment value? If someone could explain it to me, I'd be happy to format up the response and propose it for the documentation.
The text was updated successfully, but these errors were encountered: