avoid display value of None, should always be a string
This commit is contained in:
parent
1a03e3175d
commit
73e32552ff
1 changed files with 2 additions and 1 deletions
|
@ -186,6 +186,7 @@ class FieldInstance(object):
|
||||||
|
|
||||||
clientInstance = None
|
clientInstance = None
|
||||||
value = undefined
|
value = undefined
|
||||||
|
request = None
|
||||||
|
|
||||||
def __init__(self, context):
|
def __init__(self, context):
|
||||||
self.context = context
|
self.context = context
|
||||||
|
@ -402,5 +403,5 @@ class DropdownFieldInstance(FieldInstance):
|
||||||
for item in items:
|
for item in items:
|
||||||
if item['token'] == value:
|
if item['token'] == value:
|
||||||
return item['title']
|
return item['title']
|
||||||
return value
|
return value or u''
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue