From 502556e7c39cab7f10b190ac2d8f85d3178842fd Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 11 Feb 2023 17:33:13 +0000 Subject: [PATCH] Don't cache object forms --- .../mixins/window-content/object-form.html | 54 +++++++++---------- 1 file changed, 24 insertions(+), 30 deletions(-) diff --git a/mixins/templates/mixins/window-content/object-form.html b/mixins/templates/mixins/window-content/object-form.html index e1e8006..21b02e7 100644 --- a/mixins/templates/mixins/window-content/object-form.html +++ b/mixins/templates/mixins/window-content/object-form.html @@ -1,32 +1,26 @@ -{% load cache %} +{% include 'mixins/partials/notify.html' %} +{% if page_title is not None %} +

{{ page_title }}

+{% endif %} +{% if page_subtitle is not None %} +

{{ page_subtitle }}

+{% endif %} +{% load crispy_forms_tags %} -{% cache 600 object_form request.user.id form %} - - {% include 'mixins/partials/notify.html' %} - {% if page_title is not None %} -

{{ page_title }}

- {% endif %} - {% if page_subtitle is not None %} -

{{ page_subtitle }}

+{% load crispy_forms_bulma_field %} +
+ {% csrf_token %} + {{ form|crispy }} + {% if hide_cancel is not True %} + {% endif %} - {% load crispy_forms_tags %} - - {% load crispy_forms_bulma_field %} - - {% csrf_token %} - {{ form|crispy }} - {% if hide_cancel is not True %} - - {% endif %} - -
- -{% endcache %} \ No newline at end of file + +