表的结构:id, article, tag
和我用wtforms定义了一个表单:
def scaffold_form(self):
class MyForm(Forms):
article = StringField('name')
tags = Select2TagsField('tags') # tag1, tag2
return MyForm
在这里,我想插入多个记录(如[name,tag1],[name,tag2])只提交一次,我该如何实现呢?