Dropped if field.data test in flask controller.py since it fails for boolean fields.