Remove obsolete jsonfield dependency.
[wolnelektury.git] / src / catalogue / templates / catalogue / book_short.html
index ccb1004..59debf4 100644 (file)
             {% endfor %}
           </span></span>
 
-          {% if book.extra_info.location %}
-            <span class="category">
-            <span class="mono"> {% trans "Region" %}:</span>&nbsp;<span class="book-box-tag">
-                {{ book.extra_info.location }}
-            </span></span>
-          {% endif %}
+         {% with extra_info=book.get_extra_info_json %}
+            {% if extra_info.location %}
+              <span class="category">
+              <span class="mono"> {% trans "Region" %}:</span>&nbsp;<span class="book-box-tag">
+                  {{ extra_info.location }}
+              </span></span>
+            {% endif %}
+         {% endwith %}
 
           {% if book.is_foreign %}
             <span class="category">