Make the first instance of a model have unique fields in SQLAlchemy

后端 未结 0 409
名媛妹妹
名媛妹妹 2021-01-07 11:00

I have a Flask + SQLAlchemy app, with a User model. I want to enforce this business logic: that the first User created in the app should be an admi

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