Skip to content
Snippets Groups Projects
Commit b4cf45ee authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Disable flask-admin unique validator

Trying to insert an invalid IP or network address raises an exception.
This is due to the unique validator from flask-admin that queries the
database.

The unique validator is automatically added for columns with
unique=True. The only way to disable it is to monkey patch the Unique
class.
This allows the field validator to catch invalid format.

IntegrityError are already catched anyway.
parent 8dc4a249
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment