From 320e0e65e8dd78869bebb4b2849372d99a5fd40c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 22 Aug 2017 00:47:48 +0200 Subject: Django 1.11: add missing context to some templates --- ishtar_common/views.py | 6 +++--- ishtar_common/wizards.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ishtar_common') diff --git a/ishtar_common/views.py b/ishtar_common/views.py index 9a6fdbdcd..bb39c7015 100644 --- a/ishtar_common/views.py +++ b/ishtar_common/views.py @@ -1267,7 +1267,7 @@ def show_item(model, name, extra_dct=None): if doc_type == "odt" and settings.ODT_TEMPLATE: tpl = loader.get_template('ishtar/sheet_%s.html' % name) context_instance['output'] = 'ODT' - content = tpl.render(context_instance) + content = tpl.render(context_instance, request) try: tidy_options = {'output-xhtml': 1, 'indent': 1, 'tidy-mark': 0, 'doctype': 'auto', @@ -1307,7 +1307,7 @@ def show_item(model, name, extra_dct=None): elif doc_type == 'pdf': tpl = loader.get_template('ishtar/sheet_%s_pdf.html' % name) context_instance['output'] = 'PDF' - content = tpl.render(context_instance) + content = tpl.render(context_instance, request) result = StringIO.StringIO() html = content.encode('utf-8') html = html.replace("