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.
Loading
Please register or sign in to comment