diff options
Diffstat (limited to 'ishtar_common/views.py')
| -rw-r--r-- | ishtar_common/views.py | 6 | 
1 files changed, 3 insertions, 3 deletions
| 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("<table", "<pdf:nextpage/><table repeat='1'") @@ -1322,7 +1322,7 @@ def show_item(model, name, extra_dct=None):              return HttpResponse(content, content_type="application/xhtml")          else:              tpl = loader.get_template('ishtar/sheet_%s_window.html' % name) -            content = tpl.render(context_instance) +            content = tpl.render(context_instance, request)              return HttpResponse(content, content_type="application/xhtml")      return func | 
