Fixed issue 9
This commit is contained in:
1 parent
5fa710149d
commit
7129e676e2
1 file changed
+2
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user