Changeset 4b97b40 in tailbone


Ignore:
Timestamp:
02/22/19 15:58:55 (5 months ago)
Author:
Lance Edgar <ledgar@…>
Branches:
master
Children:
4b3e1c7
Parents:
145e7f5
Message:

Treat empty string as null, for app settings field values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tailbone/views/settings.py

    r145e7f5 r4b97b40  
    141141                'default': self.get_setting_value(setting),
    142142            }
    143             if kwargs['default'] is None:
     143            if kwargs['default'] is None or kwargs['default'] == '':
    144144                kwargs['default'] = colander.null
    145145            if not setting.required:
Note: See TracChangeset for help on using the changeset viewer.