fix: avoid error when grid value cannot be obtained
This commit is contained in:
parent
b81914fbf5
commit
0b6cfaa9c5
|
@ -575,7 +575,11 @@ class Grid(WuttaGrid):
|
|||
return getattr(obj, column_name)
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
try:
|
||||
return obj[column_name]
|
||||
except TypeError:
|
||||
pass
|
||||
|
||||
def render_currency(self, obj, column_name):
|
||||
value = self.obtain_value(obj, column_name)
|
||||
|
|
Loading…
Reference in a new issue