Move csrf_token out of form loop
This commit is contained in:
		
					parent
					
						
							
								bce47032ab
							
						
					
				
			
			
				commit
				
					
						bc3eaaa7eb
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -71,8 +71,8 @@ | |||
|                         <h3>{%trans "Make a payment" %}</h3> | ||||
|                         <hr class="top-hr"> | ||||
|                         <form role="form" id="generic-payment-form" method="post" action="" novalidate> | ||||
|                             {% for field in generic_payment_form %} | ||||
|                             {% csrf_token %} | ||||
|                             {% for field in generic_payment_form %} | ||||
|                             {% bootstrap_field field show_label=False type='fields'%} | ||||
|                             {% endfor %} | ||||
|                             <p class="text-danger">{{generic_payment_form.non_field_errors|striptags}}</p> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue