mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-17 04:10:24 +00:00
Remove unnecessary use of setattr
This commit is contained in:
parent
676424e388
commit
f4512642cb
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ class ModelTrackerDescriptor(object):
|
|||
ret = original_save()
|
||||
getattr(instance, self.attname).set_saved_fields()
|
||||
return ret
|
||||
setattr(instance, 'save', save)
|
||||
instance.save = save
|
||||
|
||||
def __get__(self, instance, owner):
|
||||
if instance is None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue