fix a bug in data_sources.py

cf #1459 https://dev.entrouvert.org/issues/1459#change-3933
This commit is contained in:
Thomas NOËL 2012-06-05 09:46:58 +02:00
parent c104f6b3a6
commit 4421562461
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class DataSourceSelectionWidget(CompositeWidget):
value = self.get(name)
if value:
values[name] = value
if values.get('data', '').startswith('------'):
if values.get('type', '') == 'none':
values = None
self.value = values or None