Is there any way to pass 'self' to __tablename__ as declared_attr in SQLAlchemy?

前端 未结 0 592
小蘑菇
小蘑菇 2020-12-29 22:36

I want to modify __tablename__ dynamically based on a compiled regex that my base class has stored during its construction.

class Base(object):

         


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