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)
|
return getattr(obj, column_name)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
return obj[column_name]
|
|
||||||
|
try:
|
||||||
|
return obj[column_name]
|
||||||
|
except TypeError:
|
||||||
|
pass
|
||||||
|
|
||||||
def render_currency(self, obj, column_name):
|
def render_currency(self, obj, column_name):
|
||||||
value = self.obtain_value(obj, column_name)
|
value = self.obtain_value(obj, column_name)
|
||||||
|
|
Loading…
Reference in a new issue