Call assert_not_deleted before every @transaction.
This commit is contained in:
		
							parent
							
								
									497abf26cd
								
							
						
					
					
						commit
						317fa3b51d
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -75,6 +75,9 @@ def transaction(method): | |||
|     ''' | ||||
|     @functools.wraps(method) | ||||
|     def wrapped_transaction(self, *args, **kwargs): | ||||
|         if isinstance(self, objects.ObjectBase): | ||||
|             self.assert_not_deleted() | ||||
| 
 | ||||
|         photodb = _get_relevant_photodb(self) | ||||
| 
 | ||||
|         commit = kwargs.pop('commit', False) | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue