set "no publisher" defaults

main
eric 2023-09-06 14:20:38 -04:00
parent 4612b2162c
commit 13f30b7de8
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ DOAB Link Checking Problems by Publisher
</tr>
{% for pub in pubs %}
<tr style="color:red">
<td> <a href="{% url 'publisher' pub.items__publisher_name %}">{{ pub.items__publisher_name }}</a> </td>
<td> <a href="{% url 'publisher' pub.items__publisher_name|default:'*** no publisher name ***' %}">{{ pub.items__publisher_name|default:'*** no publisher name ***' }}</a> </td>
<td> {{ pub.items__publisher_name__count }} </td>
</tr>
{% endfor %}

View File

@ -24,7 +24,7 @@
<div class="content">
<h2>
DOAB Linkchecking for
{{ publisher }} ({{ count|default:0 }} links)
{{ publisher|default:'*** no publisher name ***' }} ({{ count|default:0 }} links)
</h2>
<h3>Link checking summary</h3>