From ab1246b6d085e9b8e89bbe3e51584aa1f5672903 Mon Sep 17 00:00:00 2001 From: moanos Date: Sun, 14 Apr 2024 10:38:07 +0200 Subject: [PATCH] fix: media urls --- .../fellchensammlung/partials/partial-adoption-notice.html | 2 +- .../fellchensammlung/partials/partial-animal-card.html | 2 +- src/notfellchen/settings.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fellchensammlung/templates/fellchensammlung/partials/partial-adoption-notice.html b/src/fellchensammlung/templates/fellchensammlung/partials/partial-adoption-notice.html index a724482..d01b3af 100644 --- a/src/fellchensammlung/templates/fellchensammlung/partials/partial-adoption-notice.html +++ b/src/fellchensammlung/templates/fellchensammlung/partials/partial-adoption-notice.html @@ -27,7 +27,7 @@ {% if adoption_notice.get_photo %}
{{ adoption_notice.get_photo.alt_text }}
{% else %} diff --git a/src/fellchensammlung/templates/fellchensammlung/partials/partial-animal-card.html b/src/fellchensammlung/templates/fellchensammlung/partials/partial-animal-card.html index 2c3ffa2..8384615 100644 --- a/src/fellchensammlung/templates/fellchensammlung/partials/partial-animal-card.html +++ b/src/fellchensammlung/templates/fellchensammlung/partials/partial-animal-card.html @@ -6,7 +6,7 @@
{{ animal.get_sex_display }}
{% if animal.get_photo %} - {{ animal.get_photo.alt_text }} + {{ animal.get_photo.alt_text }} {% else %} {% translate "Keine Foto" %} diff --git a/src/notfellchen/settings.py b/src/notfellchen/settings.py index 19474d9..15eb508 100644 --- a/src/notfellchen/settings.py +++ b/src/notfellchen/settings.py @@ -172,6 +172,7 @@ TEMPLATES = [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', + 'django.template.context_processors.media', 'django.contrib.messages.context_processors.messages', ], },