Merge "Fix table rendering for iterable objects"
This commit is contained in:
commit
4e1eb710e0
@ -307,7 +307,7 @@ class Column(html.HTMLElement):
|
||||
if callable(self.transform):
|
||||
data = self.transform(datum)
|
||||
# Dict lookups
|
||||
elif isinstance(datum, collections.Iterable) and \
|
||||
elif isinstance(datum, collections.Mapping) and \
|
||||
self.transform in datum:
|
||||
data = datum.get(self.transform)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user