From 66d26f5df7cfe3f02c172778786d2bec2addf603 Mon Sep 17 00:00:00 2001 From: Stephan Kerkman Date: Thu, 28 May 2026 22:00:18 +0200 Subject: [PATCH] fix: use .all instead of .exists() to respect prefetch cache in plant_detail --- plants/templates/plants/plant_detail.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plants/templates/plants/plant_detail.html b/plants/templates/plants/plant_detail.html index 0f2e3e1..85b8dbd 100644 --- a/plants/templates/plants/plant_detail.html +++ b/plants/templates/plants/plant_detail.html @@ -77,7 +77,7 @@ {% include "plants/partials/photo_gallery.html" %} -{% if plant.card_photos.exists %} +{% if plant.card_photos.all %} 🪧 View plant card {% endif %}