forms.py
I want to validate white space for following fields name1,name2 and name3.I tried the same in clean(),where i did other validation.Only white space validation is not accepting.
Thanks
forms.py
I want to validate white space for following fields name1,name2 and name3.I tried the same in clean(),where i did other validation.Only white space validation is not accepting.
Thanks
Have you thought about using a RegexField, which would only accept the formats (incl whitespace) you want?
See RegexField in the docs