From a2bfb481aeecab28262f37e3bff8f95ed0b11f9c Mon Sep 17 00:00:00 2001 From: Max Yakovenko Date: Sun, 2 Sep 2018 16:13:16 +0300 Subject: [PATCH] add preview_image to list and post item templates --- templates/pinax/blog/blog_list.html | 4 ++-- templates/pinax/blog/blog_post.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/pinax/blog/blog_list.html b/templates/pinax/blog/blog_list.html index 05fd165..8c7df76 100644 --- a/templates/pinax/blog/blog_list.html +++ b/templates/pinax/blog/blog_list.html @@ -8,9 +8,9 @@ {% for news in object_list %}
- {% if news.image_set.primary_image %} + {% if news.post.preview_image %}
-
{{ news.title }}
+
{{ news.title }}
{% endif %}
diff --git a/templates/pinax/blog/blog_post.html b/templates/pinax/blog/blog_post.html index 2dcd5b3..f6505f8 100644 --- a/templates/pinax/blog/blog_post.html +++ b/templates/pinax/blog/blog_post.html @@ -6,9 +6,9 @@
- {% if object.image_set.primary_image %} + {% if object.post.preview_image %}
-
{{ object.title }}
{% endif %}