From bc3eaaa7eb878cfcc9d1796e463ca65a274c17fb Mon Sep 17 00:00:00 2001 From: PCoder Date: Sun, 23 Sep 2018 13:10:26 +0200 Subject: [PATCH] Move csrf_token out of form loop --- datacenterlight/templates/datacenterlight/landing_payment.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacenterlight/templates/datacenterlight/landing_payment.html b/datacenterlight/templates/datacenterlight/landing_payment.html index aa0edd35..3e5c8350 100644 --- a/datacenterlight/templates/datacenterlight/landing_payment.html +++ b/datacenterlight/templates/datacenterlight/landing_payment.html @@ -71,8 +71,8 @@

{%trans "Make a payment" %}


- {% for field in generic_payment_form %} {% csrf_token %} + {% for field in generic_payment_form %} {% bootstrap_field field show_label=False type='fields'%} {% endfor %}

{{generic_payment_form.non_field_errors|striptags}}