From 689050858446fed8c38d8470be29f89f70cecf04 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 29 Jun 2023 16:31:02 +0200 Subject: [PATCH] fix --- src/catalogue/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/catalogue/views.py b/src/catalogue/views.py index 5ea1bbea..17d61a41 100644 --- a/src/catalogue/views.py +++ b/src/catalogue/views.py @@ -225,7 +225,7 @@ def publish_author(request, pk): "gazeta_link": author.gazeta_link, "culturepl_link": author.culturepl_link, "wiki_link_pl": author.plwiki, - "photo": request.build_absolute_uri(author.photo.url), + "photo": request.build_absolute_uri(author.photo.url) if author.photo else None, "photo_source": author.photo_source, "photo_attribution": author.photo_attribution, } -- 2.20.1