kvesteri/wtforms-components

The "Unique" validator is no longer present?

rgeos opened this issue · 3 comments

rgeos commented

In the latest documentation Unique Validator is presented as a way for checking the unicity of given field in database.
A quick check of the source code shows no sign of the Unique class.
I can't figure out how this works. Can someone give me an example?
Thank you!

The unique validator was removed since it requires SQLAlchemy dependency. It is now part of WTForms-Alchemy package.

rmews commented

What version was the Unique class removed from?

I updated the docs. The Unique validator was moved to WTForms-Alchemy as of version 0.10.0 due to it's SQLAlchemy dependency.