simpler title/filename printing in templates (#22516)

This commit is contained in:
Paul Marillonnet 2018-03-14 12:23:36 +01:00 committed by Frédéric Péters
parent 570b4b391a
commit 5958b9a916
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@
data-url="{{row.record.get_download_url}}"
> {# avoid cycle for Django 1.2-1.6 compatibility #}
<td class="title">
{% if row.record.title %}{{ row.record.title }}{% else %}{{ row.record.filename }}{% endif %}
{{ row.record }}
</td>
{% for column, cell in row.items %}
<td {{ column.attrs.td.as_html }}>{% if column.localize == None %}{{ cell }}{% else %}{% if column.localize %}{{ cell|localize }}{% else %}{{ cell|unlocalize }}{% endif %}{% endif %}</td>