tolerate missing input items when filling grid
This commit is contained in:
parent
14538e90e7
commit
b8db38cf98
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ class GridFieldInstance(ListFieldInstance):
|
|||
def unmarshallRow(self, row):
|
||||
item = {}
|
||||
for fi in self.columnFieldInstances:
|
||||
value = fi.unmarshall(row[fi.name])
|
||||
value = fi.unmarshall(row.get(fi.name) or u'')
|
||||
if isinstance(value, basestring):
|
||||
value = value.strip()
|
||||
if fi.default is not None:
|
||||
|
|
Loading…
Add table
Reference in a new issue