From 582aabc1a3938cf289afa2a67330e52a71ba04ed Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 6 Jan 2018 19:20:55 -0600 Subject: [PATCH] Add empty default when displaying values in grid --- tailbone/forms2/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/forms2/core.py b/tailbone/forms2/core.py index c93bc5fb..9dad0652 100644 --- a/tailbone/forms2/core.py +++ b/tailbone/forms2/core.py @@ -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)