From 2e2011e070b6377c21e8472321506e2213b68efb Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Mon, 14 Nov 2011 17:08:21 +0100 Subject: [PATCH] Do not leave tag with an empty src field!! fixed #189 --- lib/tables.py | 4 ++-- static/pics/transparent.png | Bin 0 -> 178 bytes templates/common/table_head.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 static/pics/transparent.png diff --git a/lib/tables.py b/lib/tables.py index 8b4aaf80e..a40a942f3 100644 --- a/lib/tables.py +++ b/lib/tables.py @@ -11,7 +11,7 @@ output (using standard tags like and co.). import inspect import lxml from django.utils.translation import ugettext as _ -from django.template import Template, Context +from django.template import Template, RequestContext, Context from django.template.loader import render_to_string class Column: @@ -193,7 +193,7 @@ class Table(object): {% include "common/table_body.html" %}
""") - return t.render(Context({ + return t.render(RequestContext(self.request, { "table" : self, "tableid" : self.tableid })) t = Template(""" diff --git a/static/pics/transparent.png b/static/pics/transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..398ea4d8aac4c42c1e04e7322aeaac13b0735551 GIT binary patch literal 178 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx1|;Q0k92}K#X;^)4C~IxyaaOClDyqr82*Fc zg1yTp14TFsJR*x37`TN&n2}-D90{Nxdx@v7EBkG3K7Lba1}z^>ppayVYeb22er|4R zUI~M9QEFmIYKlU6W=V#EyQgnJcq5-UP!X@Ei(?4K_2dK~0CHIw7~?)`SpiuLp00i_ I>zopr09qU=MF0Q* literal 0 HcmV?d00001 diff --git a/templates/common/table_head.html b/templates/common/table_head.html index 26436b9a9..71e681bc2 100644 --- a/templates/common/table_head.html +++ b/templates/common/table_head.html @@ -7,7 +7,7 @@ {% endif %} {{ c|safe }} - + {% endfor %}