X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/6c81c82481a5407bc6e4f3c5cdd16baedbc2a523..28866d0f2520b7515f3c06e9b61bcce4f44d53b1:/src/catalogue/views.py?ds=sidebyside 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, }