Move csrf_token out of the form loop
This commit is contained in:
parent
d6e4a86724
commit
fcfc56e132
1 changed files with 1 additions and 1 deletions
|
@ -18,8 +18,8 @@
|
||||||
<h3>{%trans "Billing Address" %}</h3>
|
<h3>{%trans "Billing Address" %}</h3>
|
||||||
<hr>
|
<hr>
|
||||||
<form role="form" id="billing-form" method="post" action="" novalidate>
|
<form role="form" id="billing-form" method="post" action="" novalidate>
|
||||||
{% for field in form %}
|
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
{% for field in form %}
|
||||||
{% bootstrap_field field show_label=False type='fields' bound_css_class='' %}
|
{% bootstrap_field field show_label=False type='fields' bound_css_class='' %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<div class="form-group text-right">
|
<div class="form-group text-right">
|
||||||
|
|
Loading…
Reference in a new issue