Fixes testing if authors are present

This commit is contained in:
Mouse Reeve 2021-09-02 08:48:53 -07:00
parent 8d23f1d356
commit 3d394f96bf
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@
</p>
{% endif %}
{% if book.authors %}
{% if book.authors.exists %}
<div class="subtitle">
{% trans "by" %} {% include 'snippets/authors.html' with book=book %}
</div>

View file

@ -2,7 +2,7 @@
{% load utilities %}
{% spaceless %}
{% if book.authors %}
{% if book.authors.exists %}
{% blocktrans trimmed with path=book.local_path title=book|book_title %}
<a href="{{ path }}">{{ title }}</a> by
{% endblocktrans %}