gazette.validators
Classes
Test if the value is not used as a key in the given column. |
Module Contents
- class gazette.validators.UnusedColumnKeyValue(column: ColumnElement[Any])[source]
Test if the value is not used as a key in the given column.
We assume that we can look up the old value of the field with the given name through the form’s model when editing. If the values matches, no check is done.
If we can’t look up the old value we assume we are creating a new item and therefore the check is not done.