Refactored table column/row display logic

Simplified the template and made the way for upcoming foreign key work.

Refs #85

Also fixed   bug on database page - closes #113
This commit is contained in:
Simon Willison 2017-11-17 07:39:36 -08:00
commit e16ca1169c
3 changed files with 49 additions and 17 deletions

View file

@ -59,7 +59,7 @@
{% for row in rows %}
<tr>
{% for td in row %}
<td>{{ td or "&nbsp;" }}</td>
<td>{{ td or "&nbsp;"|safe }}</td>
{% endfor %}
</tr>
{% endfor %}