flask-sqlalchemy: where to place db.event.listen()

后端 未结 0 981
青春惊慌失措
青春惊慌失措 2020-12-30 08:15

I want to update a postgres tsvector column after each insert. So I declared this model structure:

models.py

db = SQLAlchemy()


from sqlalchemy.types          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题