mirror of
https://github.com/jazzband/django-downloadview.git
synced 2026-03-16 22:40:25 +00:00
Add non-downloading inline_file_view
To be used in documentation for issue #80
This commit is contained in:
parent
6232fcb736
commit
558bd757a3
1 changed files with 5 additions and 0 deletions
|
|
@ -16,3 +16,8 @@ another_file_view = ObjectDownloadView.as_view(
|
|||
deserialized_basename_view = ObjectDownloadView.as_view(
|
||||
model=Document,
|
||||
basename_field='basename')
|
||||
|
||||
#: Serve ``file`` attribute of ``Document`` model, inline rather than as attachment
|
||||
inline_file_view = ObjectDownloadView.as_view(
|
||||
model=Document,
|
||||
attachment=False)
|
||||
|
|
|
|||
Loading…
Reference in a new issue