From 15629a9d3b9ac9ac3c139834a287fe9e34bc07d3 Mon Sep 17 00:00:00 2001 From: Ilona Podliashanyk Date: Mon, 30 Sep 2024 16:35:44 +0200 Subject: [PATCH] Render CSRF token info in form content --- .../web/templates/custom_crispy_templates/_form_content.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/nav/web/templates/custom_crispy_templates/_form_content.html b/python/nav/web/templates/custom_crispy_templates/_form_content.html index 4f7a034645..e6d098b2bd 100644 --- a/python/nav/web/templates/custom_crispy_templates/_form_content.html +++ b/python/nav/web/templates/custom_crispy_templates/_form_content.html @@ -1,5 +1,5 @@ {# NB! This template can be used directly (without form template wrapper) for cases where form.helper.form_tag is set to False. #} - +{% csrf_token %} {% if form.attrs.form_fields %} {% include 'custom_crispy_templates/_form_fields.html' with fields=form.attrs.form_fields %} {% else %}