diff --git a/app/__init__.py b/app/__init__.py index 8b2e2ce..fd530ca 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -187,6 +187,8 @@ def create_vehicle(): if form.consumables.data: form.consumables.default = form.consumables.data + else: + form.consumables.default = [] if form.validate_on_submit(): if len(form.consumables.data) == 0: