我有一个带有 unique_with 字段的烧瓶单引擎模型
class RedirectMixin(object):
name = db.StringField(max_length=1000, required=True, help_text="Used internally")
matching_type = db.IntField(
help_text='`Equals` has higher priority. With concurrent `Start with` rules, longest `Url_from` wins',
required=True, choices=MATCHING_TYPES)
add_unmatched_ending = db.BooleanField(
help_text='Example: Starts with /a/ redirect to /b/. This will make /a/c/ redirect to /b/c/',
default=False)
url_from = db.StringField(max_length=1000, required=True, unique_with='matching_type',
help_text='Case insensitive')
url_to = db.StringField(max_length=1000, required=True)
我想知道的是,当在管理端填写表单时,为什么烧瓶管理员不验证是否违反本规范(unique_with ie),以及如果没有为它构建烧瓶管理员,还如何进行验证。提前致谢