我们从Python开源项目中,提取了以下1个代码示例,用于说明如何使用app.db.backref()。
def on_policy_enable(self, key, enable): if not self.policy_enabled and enable: self.next_delete = ( datetime.now(timezone.utc) + self.policy_delete_every) self.reason = None self.dormant = False return enable # backref: tokens # backref: twitter_archives # backref: posts # backref: sessions