Unique validator in WTForms with SQLAlchemy models
问题 I defined some WTForms forms in an application that uses SQLALchemy to manage database operations. For example, a form for managing Categories: class CategoryForm(Form): name = TextField(u'name', [validators.Required()]) And here's the corresponding SQLAlchemy model: class Category(Base): __tablename__= 'category' id = Column(Integer, primary_key=True) name = Column(Unicode(255)) def __repr__(self): return '<Category %i>'% self.id def __unicode__(self): return self.name I would like to add a