Specify expire_on_commit for rattail db sessions
				
					
				
			apparently we need to do that sometimes? always? i surely need to understand this better..
This commit is contained in:
		
							parent
							
								
									1b3886443a
								
							
						
					
					
						commit
						aa3ff792a2
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -87,7 +87,8 @@ if sqlalchemy:
 | 
				
			||||||
            self.continuum_user = user
 | 
					            self.continuum_user = user
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Session = orm.sessionmaker(class_=SessionBase, rattail_config=None, rattail_record_changes=False)
 | 
					    Session = orm.sessionmaker(class_=SessionBase, rattail_config=None, rattail_record_changes=False, expire_on_commit=False)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
else: # no sqlalchemy
 | 
					else: # no sqlalchemy
 | 
				
			||||||
    Session = None
 | 
					    Session = None
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue