Currently, when a field is marked as readonly and has a custom validation rule, that validation rule gets executed before readonly is checked. Ideally, if 'readonly': True is provided, that should happen before any other validation since it's pointless to validate a value that isn't allowed.
Currently, when a field is marked as readonly and has a custom validation rule, that validation rule gets executed before
readonlyis checked. Ideally, if'readonly': Trueis provided, that should happen before any other validation since it's pointless to validate a value that isn't allowed.