Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
在模块 添加一个_sql_constraints 属性, eg: 你想让model中的name不能重复 在你的model 类中添加下面代码即可 _sql_constraints = [('name_uniq','unique(name)', 'name must be unique!')]