Skip to content

Commit

Permalink
Render CSRF token info in form content
Browse files Browse the repository at this point in the history
  • Loading branch information
podliashanyk committed Sep 30, 2024
1 parent 2dae9d3 commit 15629a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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 %}
Expand Down

0 comments on commit 15629a9

Please sign in to comment.