Add csrftoken to TailboneForm js
ugh..for now at least
This commit is contained in:
		
							parent
							
								
									661d536e9d
								
							
						
					
					
						commit
						544f05a5a8
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -104,6 +104,9 @@
 | 
			
		|||
 | 
			
		||||
  let ${form.component_studly}Data = {
 | 
			
		||||
 | 
			
		||||
      ## TODO: should find a better way to handle CSRF token
 | 
			
		||||
      csrftoken: ${json.dumps(request.session.get_csrf_token() or request.session.new_csrf_token())|n},
 | 
			
		||||
 | 
			
		||||
      ## TODO: ugh, this seems pretty hacky.  need to declare some data models
 | 
			
		||||
      ## for various field components to bind to...
 | 
			
		||||
      % if not form.readonly:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue