Move csrf_token call outside the for loop
This commit is contained in:
		
					parent
					
						
							
								7494116468
							
						
					
				
			
			
				commit
				
					
						23630d4473
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue