diff --git a/plants/templates/plants/partials/card_gallery.html b/plants/templates/plants/partials/card_gallery.html index 585d5b8..940f912 100644 --- a/plants/templates/plants/partials/card_gallery.html +++ b/plants/templates/plants/partials/card_gallery.html @@ -19,9 +19,8 @@ {% endfor %} {% endif %} - {% endwith %} - {% if plant.card_photos.count < 3 %} + {% if card_photos|length < 3 %}
@@ -32,6 +31,7 @@
- {% endif %} Up to 3 photos — front & back of the label + {% endif %} + {% endwith %}