Correct link to _ prefix on row page, closes #1525

This commit is contained in:
Simon Willison 2021-11-29 22:34:31 -08:00
commit a37ee74891
3 changed files with 38 additions and 2 deletions

View file

@ -38,7 +38,7 @@
<ul>
{% for other in foreign_key_tables %}
<li>
<a href="{{ urls.table(database, other.other_table) }}?{{ other.other_column }}={{ ', '.join(primary_key_values) }}">
<a href="{{ other.link }}">
{{ "{:,}".format(other.count) }} row{% if other.count == 1 %}{% else %}s{% endif %}</a>
from {{ other.other_column }} in {{ other.other_table }}
</li>