Move csrf_token call outside the for loop

This commit is contained in:
PCoder 2018-06-12 11:11:37 +02:00
parent 7494116468
commit 23630d4473

View file

@ -105,8 +105,8 @@
<h3><b>{%trans "Billing Address"%}</b></h3>
<hr>
<form role="form" id="billing-form" method="post" action="" novalidate>
{% for field in form %}
{% csrf_token %}
{% for field in form %}
{% bootstrap_field field show_label=False type='fields'%}
{% endfor %}
</form>