From a691fe70ab4aa219b4a774345afd8043440720c7 Mon Sep 17 00:00:00 2001 From: Lacey Williams Henschel Date: Wed, 8 Mar 2023 13:30:35 -0800 Subject: [PATCH] :bug: Check for image before accessing image.url --- templates/libraries/_library_list_item.html | 2 +- templates/libraries/detail.html | 4 ++-- templates/users/profile.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/libraries/_library_list_item.html b/templates/libraries/_library_list_item.html index 2b51930b..4fd1e72b 100644 --- a/templates/libraries/_library_list_item.html +++ b/templates/libraries/_library_list_item.html @@ -24,7 +24,7 @@
{% for author in library.authors.all %}
- {% if author.image.url %} + {% if author.image %} user {% else %} diff --git a/templates/libraries/detail.html b/templates/libraries/detail.html index ea990d47..a92c57c1 100644 --- a/templates/libraries/detail.html +++ b/templates/libraries/detail.html @@ -83,7 +83,7 @@
{% for author in object.authors.all %}
- {% if author.image.url %} + {% if author.image %} user {% else %} @@ -98,7 +98,7 @@
{% for maintainer in object.maintainers.all %}
- {% if maintainer.image.url %} + {% if maintainer.image %} user {% else %} diff --git a/templates/users/profile.html b/templates/users/profile.html index 68d001fb..407f0f92 100644 --- a/templates/users/profile.html +++ b/templates/users/profile.html @@ -5,7 +5,7 @@ {% block subnav %}
- {% if user.image.url %} + {% if user.image %} user {% else %}