From 2586cc5a971e28ce2e167b7da5da27ae47a891f7 Mon Sep 17 00:00:00 2001 From: johnthagen Date: Thu, 21 Jan 2021 12:50:16 -0500 Subject: [PATCH 1/4] Fix doc code include in ObjectDownloadView --- docs/views/object.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/views/object.txt b/docs/views/object.txt index 507d013..47fbcc3 100644 --- a/docs/views/object.txt +++ b/docs/views/object.txt @@ -30,7 +30,7 @@ Setup a view to stream the ``file`` attribute: .. literalinclude:: /../demo/demoproject/object/views.py :language: python - :lines: 1-5, 7 + :lines: 1-6 :class:`~django_downloadview.views.object.ObjectDownloadView` inherits from :class:`~django.views.generic.detail.BaseDetailView`, i.e. it expects either From 700b1246df694327b9a7bc1c270b2a7f7d560c1c Mon Sep 17 00:00:00 2001 From: johnthagen Date: Thu, 21 Jan 2021 12:56:36 -0500 Subject: [PATCH 2/4] Fix "serving a specific file field" example code --- docs/views/object.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/views/object.txt b/docs/views/object.txt index 47fbcc3..d4156fd 100644 --- a/docs/views/object.txt +++ b/docs/views/object.txt @@ -69,7 +69,7 @@ Then here is the code to serve "another_file" instead of the default "file": .. literalinclude:: /../demo/demoproject/object/views.py :language: python - :lines: 1-5, 10-12 + :lines: 1-4, 8-11 ********************************** From eb223f169bb425738fc7443d469d2717e9f80f3a Mon Sep 17 00:00:00 2001 From: johnthagen Date: Thu, 21 Jan 2021 12:59:36 -0500 Subject: [PATCH 3/4] Fix "Mapping file attributes to model's" example code --- docs/views/object.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/views/object.txt b/docs/views/object.txt index d4156fd..f5a88b6 100644 --- a/docs/views/object.txt +++ b/docs/views/object.txt @@ -90,7 +90,7 @@ Then you can configure the :attr:`ObjectDownloadView.basename_field` option: .. literalinclude:: /../demo/demoproject/object/views.py :language: python - :lines: 1-5, 16-18 + :lines: 1-4, 13-17 .. note:: From ed3d470908cbea54377df1f0bcfc023a1c6d3a38 Mon Sep 17 00:00:00 2001 From: johnthagen Date: Thu, 21 Jan 2021 13:07:36 -0500 Subject: [PATCH 4/4] Fix url example code --- docs/views/object.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/views/object.txt b/docs/views/object.txt index f5a88b6..ea11d76 100644 --- a/docs/views/object.txt +++ b/docs/views/object.txt @@ -38,7 +38,7 @@ Setup a view to stream the ``file`` attribute: .. literalinclude:: /../demo/demoproject/object/urls.py :language: python - :lines: 1-7, 8-11, 20 + :lines: 1-7, 8-11, 27 ************