django-formidable
django-formidable copied to clipboard
Test the "Validation grid"
Validations are using the following form: "field" + "comparison operator" + "value".
There is a defined set of comparison operators, but all of them are not applicable to every field type. I don't know if it's possible to validate the following grid, that is to say that we may enforce some operators only for a defined field type...
- text: MINLENGTH, MAXLENGTH, REGEXP
- paragraph: MINLENGTH, MAXLENGTH, REGEXP
- date: GT, GTE, LT, LTE, EQ, NEQ, IS_AGE_ABOVE (>=), IS_AGE_UNDER (<), IS_DATE_IN_THE_PAST, IS_DATE_IN_THE_FUTURE
- number: GT, GTE, LT, LTE, EQ, NEQ