if no value set for a choose, display no value

This commit is contained in:
Emmanuel Garette 2020-04-09 07:52:17 +02:00 committed by Emmanuel Garette
parent 79355f92a7
commit 86fc311277

View file

@ -114,6 +114,7 @@ class TiramisuNamespace(Namespace):
except ValueError as err:
if option.option.type() == 'choice':
values = option.value.list()
display_value = ''
if isinstance(true_value, list):
for val in value:
if val not in values: