diff --git a/mia_core/utils.py b/mia_core/utils.py index cf5b610..f3ee0d6 100644 --- a/mia_core/utils.py +++ b/mia_core/utils.py @@ -49,8 +49,10 @@ def strip_form(form): Args: form (dict[str]): The form. """ - for key in form.keys(): + for key in list(form.keys()): form[key] = form[key].strip() + if form[key] == "": + del form[key] class Language: