Bugfix for 3a408f9d19
This commit is contained in:
parent
2762dbb17e
commit
1a8cc83735
2 changed files with 6 additions and 4 deletions
|
|
@ -20,5 +20,7 @@ except NameError:
|
|||
self.func = func
|
||||
|
||||
def __get__(self, instance, _):
|
||||
if instance is None:
|
||||
return self
|
||||
setattr(instance, self.func.__name__, self.func(instance))
|
||||
return getattr(instance, self.func.__name__)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue