Remove caching from common object templates
This commit is contained in:
parent
502556e7c3
commit
3d7c3504aa
|
@ -1,15 +1,11 @@
|
|||
{% load cache %}
|
||||
|
||||
{% cache 600 object request.user.id object %}
|
||||
|
||||
{% include 'mixins/partials/notify.html' %}
|
||||
{% if page_title is not None %}
|
||||
{% include 'mixins/partials/notify.html' %}
|
||||
{% if page_title is not None %}
|
||||
<h1 class="title is-4">{{ page_title }}</h1>
|
||||
{% endif %}
|
||||
{% if page_subtitle is not None %}
|
||||
{% endif %}
|
||||
{% if page_subtitle is not None %}
|
||||
<h1 class="subtitle">{{ page_subtitle }}</h1>
|
||||
{% endif %}
|
||||
<div class="buttons">
|
||||
{% endif %}
|
||||
<div class="buttons">
|
||||
|
||||
{% if submit_url is not None %}
|
||||
<button
|
||||
|
@ -43,8 +39,6 @@
|
|||
</span>
|
||||
</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include detail_template %}
|
||||
|
||||
{% endcache %}
|
||||
{% include detail_template %}
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
{% load cache %}
|
||||
|
||||
{% cache 600 objects request.user.id object_list %}
|
||||
{% include 'mixins/partials/notify.html' %}
|
||||
{% if page_title is not None %}
|
||||
{% include 'mixins/partials/notify.html' %}
|
||||
{% if page_title is not None %}
|
||||
<h1 class="title is-4">{{ page_title }}</h1>
|
||||
{% endif %}
|
||||
{% if page_subtitle is not None %}
|
||||
{% endif %}
|
||||
{% if page_subtitle is not None %}
|
||||
<h1 class="subtitle">{{ page_subtitle }}</h1>
|
||||
{% endif %}
|
||||
<div class="buttons">
|
||||
{% endif %}
|
||||
<div class="buttons">
|
||||
|
||||
{% if submit_url is not None %}
|
||||
<button
|
||||
|
@ -42,8 +39,6 @@
|
|||
</span>
|
||||
</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include list_template %}
|
||||
|
||||
{% endcache %}
|
||||
{% include list_template %}
|
||||
|
|
Loading…
Reference in New Issue