Merge branch '9-creation-of-new-vehicle-fails' into 'development'
Resolve "Creation of new vehicle fails" Closes #9 See merge request !25
This commit is contained in:
commit
48d7c108f1
|
@ -187,6 +187,8 @@ def create_vehicle():
|
||||||
|
|
||||||
if form.consumables.data:
|
if form.consumables.data:
|
||||||
form.consumables.default = form.consumables.data
|
form.consumables.default = form.consumables.data
|
||||||
|
else:
|
||||||
|
form.consumables.default = []
|
||||||
|
|
||||||
if form.validate_on_submit():
|
if form.validate_on_submit():
|
||||||
if len(form.consumables.data) == 0:
|
if len(form.consumables.data) == 0:
|
||||||
|
|
Loading…
Reference in New Issue