83👍
✅
You can use the @property
decorator.
class foo(object):
bar = "bar"
@property
def baz(self):
return "baz"
- [Django]-Django South – table already exists
- [Django]-Django models ForeignKey on_delete attribute: full meaning?
- [Django]-Django REST framework post array of objects
Source:stackexchange.com