@property
def author(self):
- if not hasattr(self, "__author"):
- self.__author = self.accounts.search(self.data.author_id)
+ if not hasattr(self, "_author"):
+ self._author = self.accounts.get_by_uid(self.data.author_id)
- return self.__author
+ return self._author
def set_status(self, status):
if self.status == status: