avoid display value of None, should always be a string

This commit is contained in:
Helmut Merz 2012-08-30 16:07:01 +02:00
parent 1a03e3175d
commit 73e32552ff

View file

@ -186,6 +186,7 @@ class FieldInstance(object):
clientInstance = None
value = undefined
request = None
def __init__(self, context):
self.context = context
@ -402,5 +403,5 @@ class DropdownFieldInstance(FieldInstance):
for item in items:
if item['token'] == value:
return item['title']
return value
return value or u''