Add empty default when displaying values in grid
This commit is contained in:
parent
46d0e96321
commit
582aabc1a3
|
@ -668,7 +668,7 @@ class Form(object):
|
|||
try:
|
||||
return record[field_name]
|
||||
except TypeError:
|
||||
return getattr(record, field_name)
|
||||
return getattr(record, field_name, None)
|
||||
|
||||
def validate(self, *args, **kwargs):
|
||||
raise_error = kwargs.pop('raise_error', True)
|
||||
|
|
Loading…
Reference in a new issue