From 3d394f96bf3d424a4a678390f5c1207fbf794ef3 Mon Sep 17 00:00:00 2001
From: Mouse Reeve
Date: Thu, 2 Sep 2021 08:48:53 -0700
Subject: [PATCH] Fixes testing if authors are present
---
bookwyrm/templates/book/book.html | 2 +-
bookwyrm/templates/snippets/book_titleby.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bookwyrm/templates/book/book.html b/bookwyrm/templates/book/book.html
index e504041b..334d2b61 100644
--- a/bookwyrm/templates/book/book.html
+++ b/bookwyrm/templates/book/book.html
@@ -43,7 +43,7 @@
{% endif %}
- {% if book.authors %}
+ {% if book.authors.exists %}
{% trans "by" %} {% include 'snippets/authors.html' with book=book %}
diff --git a/bookwyrm/templates/snippets/book_titleby.html b/bookwyrm/templates/snippets/book_titleby.html
index 5eddabff..1c2bb176 100644
--- a/bookwyrm/templates/snippets/book_titleby.html
+++ b/bookwyrm/templates/snippets/book_titleby.html
@@ -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 %}
{{ title }} by
{% endblocktrans %}