mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 09:12:11 +01:00 
			
		
		
		
	Don't trigger signals when we add an object through a permission check
This commit is contained in:
		@@ -58,7 +58,7 @@ class InstancedPermission:
 | 
			
		||||
                    # Force insertion, no data verification, no trigger
 | 
			
		||||
                    obj._force_save = True
 | 
			
		||||
                    # We don't want to trigger any signal (log, ...)
 | 
			
		||||
                    obj.no_signal = True
 | 
			
		||||
                    obj._no_signal = True
 | 
			
		||||
                    Model.save(obj, force_insert=True)
 | 
			
		||||
                    ret = self.model.model_class().objects.filter(self.query & Q(pk=0)).exists()
 | 
			
		||||
                    # Delete testing object
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user