fix a bug in data_sources.py
cf #1459 https://dev.entrouvert.org/issues/1459#change-3933
This commit is contained in:
parent
c104f6b3a6
commit
4421562461
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue