fix: use .all instead of .exists() to respect prefetch cache in plant_detail
This commit is contained in:
parent
dff1c88748
commit
66d26f5df7
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@
|
|||
{% include "plants/partials/photo_gallery.html" %}
|
||||
</div>
|
||||
|
||||
{% if plant.card_photos.exists %}
|
||||
{% if plant.card_photos.all %}
|
||||
<a href="{% url 'plant_card' plant.pk %}" class="btn btn-sm btn-outline-secondary mb-2">🪧 View plant card</a>
|
||||
{% endif %}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue