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:
|
try:
|
||||||
return record[field_name]
|
return record[field_name]
|
||||||
except TypeError:
|
except TypeError:
|
||||||
return getattr(record, field_name)
|
return getattr(record, field_name, None)
|
||||||
|
|
||||||
def validate(self, *args, **kwargs):
|
def validate(self, *args, **kwargs):
|
||||||
raise_error = kwargs.pop('raise_error', True)
|
raise_error = kwargs.pop('raise_error', True)
|
||||||
|
|
Loading…
Reference in a new issue