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
parent c9a911870d
commit 891668c00f

View file

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