make sure all cells are filled

This commit is contained in:
Frédéric Péters 2009-03-26 14:01:19 +00:00
parent 35d5a93aea
commit 8a185d160b
1 changed files with 3 additions and 0 deletions

View File

@ -713,6 +713,9 @@ class TableField(WidgetField):
for column in self.columns:
max_width = max(max_width, len(column))
for i, row in enumerate(value):
value[i] = [x or '' for x in row]
for i, row in enumerate(self.rows):
max_width = max(max_width, len(row))
for j, column in enumerate(self.columns):