Store only changed data in logs

This commit is contained in:
Yohann D'ANELLO 2020-08-13 17:08:15 +02:00
parent bb2704323a
commit 2d69e36adf
1 changed files with 1 additions and 1 deletions

View File

@ -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 = []