@hybrid_property def min_term(self): return func.datediff(func.adddate(func.adddate(func.now(), self.min_term_d), text('interval '+self.min_term_m+' month')), func.now())
text('interval mytable.min_term_m month'))
@hybrid_property def min_term(self): return func.datediff(func.adddate(func.adddate(func.now(), self.min_term_d), text('interval '+self.min_term_m+' month')), func.now())
text('interval mytable.min_term_m month'))