Cache object list

This commit is contained in:
2023-02-11 14:10:18 +00:00
parent 6579a86e44
commit b7b0f1e01c

View File

@@ -1,11 +1,14 @@
{% include 'mixins/partials/notify.html' %} {% load cache %}
{% if page_title is not None %}
{% cache 60 object_list %}
{% include 'mixins/partials/notify.html' %}
{% if page_title is not None %}
<h1 class="title is-4">{{ page_title }}</h1> <h1 class="title is-4">{{ page_title }}</h1>
{% endif %} {% endif %}
{% if page_subtitle is not None %} {% if page_subtitle is not None %}
<h1 class="subtitle">{{ page_subtitle }}</h1> <h1 class="subtitle">{{ page_subtitle }}</h1>
{% endif %} {% endif %}
<div class="buttons"> <div class="buttons">
{% if submit_url is not None %} {% if submit_url is not None %}
<button <button
@@ -39,7 +42,8 @@
</span> </span>
</button> </button>
{% endif %} {% endif %}
</div> </div>
{% include list_template %} {% include list_template %}
{% endcache %}