initialize data_source to an empty dict, for import to work

This commit is contained in:
Frédéric Péters 2012-06-28 09:52:21 +02:00
parent a5a7842008
commit 0ba0145a3e
1 changed files with 1 additions and 1 deletions

View File

@ -652,7 +652,7 @@ class ItemField(WidgetField):
items = []
show_as_radio = False
widget_class = SingleSelectHintWidget
data_source = None
data_source = {}
def __init__(self, **kwargs):
self.items = []