summaryrefslogtreecommitdiffstats
path: root/ogcp/models.py
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2021-02-16 13:30:28 +0000
committerJose M. Guisado <jguisado@soleta.eu>2021-02-16 13:30:28 +0000
commite68eb7a3da8b60b6af1bff0cce74b22fdae26095 (patch)
tree33736dc14a4571605dce1e8c6fcf33d69cdb0a66 /ogcp/models.py
parent622f0bacbc5a31f1e69d652d85f8581e22ae31c9 (diff)
Add example image creation WTForms validator
Adds in a declarative way the validation of the image name form control when creating a partition image. This commit serves as an example of adding a predefined validator of the WTForms module. Custom validator may be added by creating a given function and appending it to the list of validators. See https://wtforms.readthedocs.io/en/2.3.x/validators/#custom-validators
Diffstat (limited to 'ogcp/models.py')
0 files changed, 0 insertions, 0 deletions