Commits

Kai Diefenbach  committed 1f06a2e

Using image instead of get_image to prevent unnecessary hits on db

  • Participants
  • Parent commits 167d758

Comments (0)

Files changed (1)

File lfc_blog/templates/lfc/templates/blog.html

                 {% endifequal %}
             </div>
 
-            {% if sub_obj.get_image %}
+            {% if sub_obj.image %}
                 <img class="left"
-                     src="{{ sub_obj.get_image.image.url_200x200 }}"
-                     alt="{{ sub_obj.get_image.image.title }}"
-                     title="{{ sub_obj.get_image.image.title }}" />
+                     src="{{ sub_obj.image.image.url_200x200 }}"
+                     alt="{{ sub_obj.image.image.title }}"
+                     title="{{ sub_obj.image.image.title }}" />
             {% endif %}
 
             <div>