fix for error where db cursor closes when looking for usermisc objects by relation.

This commit is contained in:
2021-05-25 09:10:06 +01:00
parent 715f0838b9
commit 39222118ab
2 changed files with 14 additions and 9 deletions

View File

@@ -11,7 +11,7 @@
{% for page in pages %}
<section data-menu-title="{{ page.page_file_name }}">
{% if page.content_type|first in 'image' %}
<img data-src="{% url "get_image" nav.cur_path page.index %}" class=" w-100" alt="{{ page.page_file_name }}">
<img data-src="{% url "get_image" nav.cur_path page.index %}" class="w-100" alt="{{ page.page_file_name }}">
{% else %}
<p><embed class="comic_embed" type="{{ page.content_type }}" src="{% url "get_image" nav.cur_path page.index %}"></p>
{% endif %}