This commit is contained in:
Aevann1 2021-11-02 17:17:16 +02:00
parent ed722b5ffe
commit af774abad1
11 changed files with 39 additions and 39 deletions

View file

@ -162,7 +162,7 @@ class Comment(Base):
if self.level == 1: return self.post
else: return g.db.query(Comment).get(self.parent_comment_id)
else: return g.db.query(Comment).options(lazyload('*')).get(self.parent_comment_id)
@property
@lazy