From a4573a8de8d4ea123a6c8bf6049372d2a3fde26e Mon Sep 17 00:00:00 2001 From: Johann Bauer Date: Sat, 4 Jan 2020 00:33:24 +0100 Subject: [PATCH] Add PDF preview next to edit form --- .../admin/documents/document/change_form.html | 35 +++++++++++++++++++ src/documents/views.py | 5 ++- src/paperless/urls.py | 2 +- 3 files changed, 40 insertions(+), 2 deletions(-) diff --git a/src/documents/templates/admin/documents/document/change_form.html b/src/documents/templates/admin/documents/document/change_form.html index 88fae955d..6edcbf2b1 100644 --- a/src/documents/templates/admin/documents/document/change_form.html +++ b/src/documents/templates/admin/documents/document/change_form.html @@ -3,6 +3,10 @@ {% block content %} {{ block.super }} +
+

Preview

+ +
{% if next_object %}