def is_not_whitespace_only():
  def validator(form, value):
    if not value.strip():
      raise ValidationError(_(u'The text must not be empty.'))
  return validator
Make sure the value does consist of at least one
dataset/ETHPy150Open IanLewis/kay/kay/utils/validators.py/is_not_whitespace_only