From 4b97b403d32a6795acbf2de0a5d323e94bdad535 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 22 Feb 2019 15:58:55 -0600 Subject: [PATCH] Treat empty string as null, for app settings field values --- tailbone/views/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/views/settings.py b/tailbone/views/settings.py index 0fd784ec..56ea3e4f 100644 --- a/tailbone/views/settings.py +++ b/tailbone/views/settings.py @@ -140,7 +140,7 @@ class AppSettingsView(View): 'name': setting.node_name, 'default': self.get_setting_value(setting), } - if kwargs['default'] is None: + if kwargs['default'] is None or kwargs['default'] == '': kwargs['default'] = colander.null if not setting.required: kwargs['missing'] = colander.null