mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-24 23:30:24 +00:00
ModelTracker: pass kwargs to parent save correctly
Fixes usage of update_fields in save()
This commit is contained in:
parent
98016dbd50
commit
cddcbd4e42
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ class ModelTracker(object):
|
|||
def patch_save(self, instance):
|
||||
original_save = instance.save
|
||||
def save(**kwargs):
|
||||
ret = original_save()
|
||||
ret = original_save(**kwargs)
|
||||
getattr(instance, self.attname).set_saved_fields(
|
||||
fields=kwargs.get('update_fields'))
|
||||
return ret
|
||||
|
|
|
|||
Loading…
Reference in a new issue