revert accedentially pulled obsolete change from 2013-01
This commit is contained in:
parent
7940efc315
commit
953df5a3be
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class Instance(BaseInstance):
|
|||
fi = f.getFieldInstance(self, context=kw.get('context'),
|
||||
request=kw.get('request'))
|
||||
name = f.name
|
||||
value = getattr(self.context, name, fi.default)
|
||||
value = getattr(self.context, name) or fi.default
|
||||
if mode in ('view', 'preview'):
|
||||
value = fi.display(value)
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue