diff --git a/src/collective/feedback/restapi/services/update.py b/src/collective/feedback/restapi/services/update.py index 5ba26f1..ce09740 100644 --- a/src/collective/feedback/restapi/services/update.py +++ b/src/collective/feedback/restapi/services/update.py @@ -77,6 +77,6 @@ def validate_form(self, form_data): check all required fields and parameters """ for field in ["read"]: - value = form_data.get(field, "") - if not value: + value = form_data.get(field, None) + if value is None: raise BadRequest("Campo obbligatorio mancante: {}".format(field))