mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 17:12:28 +01:00 
			
		
		
		
	Store only changed data in logs
This commit is contained in:
		@@ -81,7 +81,7 @@ def save_object(sender, instance, **kwargs):
 | 
			
		||||
        if instance.last_login != previous.last_login:
 | 
			
		||||
            return
 | 
			
		||||
 | 
			
		||||
    fields = '__all__'
 | 
			
		||||
    changed_fields = '__all__'
 | 
			
		||||
    if previous:
 | 
			
		||||
        # On ne garde que les champs modifiés
 | 
			
		||||
        changed_fields = []
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user