From 76a981ebdb9964128d8fbc4d25d113cac88d30e3 Mon Sep 17 00:00:00 2001 From: Paul Marillonnet Date: Wed, 14 Mar 2018 12:23:36 +0100 Subject: [PATCH] simpler title/filename printing in templates (#22516) --- fargo/templates/fargo/table.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fargo/templates/fargo/table.html b/fargo/templates/fargo/table.html index 46c10bf..7460404 100644 --- a/fargo/templates/fargo/table.html +++ b/fargo/templates/fargo/table.html @@ -26,7 +26,7 @@ data-url="{{row.record.get_download_url}}" > {# avoid cycle for Django 1.2-1.6 compatibility #} - {% if row.record.title %}{{ row.record.title }}{% else %}{{ row.record.filename }}{% endif %} + {{ row.record }} {% for column, cell in row.items %} {% if column.localize == None %}{{ cell }}{% else %}{% if column.localize %}{{ cell|localize }}{% else %}{{ cell|unlocalize }}{% endif %}{% endif %} -- 2.16.2