Don't cache object forms
This commit is contained in:
parent
d808ceebac
commit
502556e7c3
|
@ -1,18 +1,14 @@
|
||||||
{% load cache %}
|
{% include 'mixins/partials/notify.html' %}
|
||||||
|
{% if page_title is not None %}
|
||||||
{% cache 600 object_form request.user.id form %}
|
|
||||||
|
|
||||||
{% 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 %}
|
||||||
{% load crispy_forms_tags %}
|
{% load crispy_forms_tags %}
|
||||||
|
|
||||||
{% load crispy_forms_bulma_field %}
|
{% load crispy_forms_bulma_field %}
|
||||||
<form
|
<form
|
||||||
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
|
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
|
||||||
hx-post="{{ submit_url }}"
|
hx-post="{{ submit_url }}"
|
||||||
hx-target="#modals-here"
|
hx-target="#modals-here"
|
||||||
|
@ -27,6 +23,4 @@
|
||||||
</button>
|
</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<button type="submit" class="button modal-close-button">Submit</button>
|
<button type="submit" class="button modal-close-button">Submit</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
{% endcache %}
|
|
||||||
|
|
Loading…
Reference in New Issue