avoid error when number of columns in table definition has been increased
This commit is contained in:
parent
7b3065439a
commit
419e899aa4
1 changed files with 2 additions and 1 deletions
|
@ -242,7 +242,8 @@ class KeyTableFieldInstance(RecordsFieldInstance):
|
||||||
for k, v in value.items():
|
for k, v in value.items():
|
||||||
row = [k]
|
row = [k]
|
||||||
for idx, fi in enumerate(self.columnFieldInstances[1:]):
|
for idx, fi in enumerate(self.columnFieldInstances[1:]):
|
||||||
row.append(fi.display(v[idx]))
|
if idx < len(v):
|
||||||
|
row.append(fi.display(v[idx]))
|
||||||
rows.append(row)
|
rows.append(row)
|
||||||
return dict(headers=headers, rows=rows)
|
return dict(headers=headers, rows=rows)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue