mirror of https://gitlab.crans.org/bde/nk20
Store only changed data in logs
This commit is contained in:
parent
bb2704323a
commit
2d69e36adf
|
@ -81,7 +81,7 @@ def save_object(sender, instance, **kwargs):
|
||||||
if instance.last_login != previous.last_login:
|
if instance.last_login != previous.last_login:
|
||||||
return
|
return
|
||||||
|
|
||||||
fields = '__all__'
|
changed_fields = '__all__'
|
||||||
if previous:
|
if previous:
|
||||||
# On ne garde que les champs modifiés
|
# On ne garde que les champs modifiés
|
||||||
changed_fields = []
|
changed_fields = []
|
||||||
|
|
Loading…
Reference in New Issue