mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-17 04:10:24 +00:00
Correctly clean up recursion sentinel value.
This commit is contained in:
parent
c16a275bd7
commit
59347ef36f
1 changed files with 1 additions and 2 deletions
|
|
@ -63,8 +63,7 @@ class DescriptorWrapper(object):
|
|||
# This will undefer the field
|
||||
getattr(instance, self.field_name)
|
||||
finally:
|
||||
if already_setting:
|
||||
instance.__dict__.pop(recursion_sentinel_attname, None)
|
||||
instance.__dict__.pop(recursion_sentinel_attname, None)
|
||||
if hasattr(self.descriptor, '__set__'):
|
||||
self.descriptor.__set__(instance, value)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue