Add non-downloading inline_file_view

To be used in documentation for issue #80
This commit is contained in:
Erik Dykema 2014-02-10 14:29:48 -05:00
parent 6232fcb736
commit 558bd757a3

View file

@ -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)