Skip to content

Commit

Permalink
fix for SynonymProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
amol- committed Sep 14, 2011
1 parent 915f471 commit 7b43836
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tg/ming_tools.py
Expand Up @@ -18,6 +18,8 @@ def __init__(self, getter, setter=None):
self.setter = setter

def __get__(self, instance, cls=None):
if not instance:
return self
return self.getter(instance)

def __set__(self, instance, value):
Expand Down

0 comments on commit 7b43836

Please sign in to comment.