diff --git a/dynamicsettings/__init__.py b/dynamicsettings/__init__.py index 9dce5cf..0f8547e 100644 --- a/dynamicsettings/__init__.py +++ b/dynamicsettings/__init__.py @@ -85,7 +85,7 @@ def set(self, key, value, value_type=None): dynamic_setting.save() #refresh the cache self._get_settings() - return dynamic_setting.value + return True raise KeyError('Setting "%s" can not be set in the database. If you want to change the setting add it to DYNAMICSETTINGS_INCLUDE_SETTINGS.' % key) def reset(self, key): diff --git a/dynamicsettings/templates/dynamicsettings/settings.html b/dynamicsettings/templates/dynamicsettings/settings.html index cab6db1..e1e0c6c 100644 --- a/dynamicsettings/templates/dynamicsettings/settings.html +++ b/dynamicsettings/templates/dynamicsettings/settings.html @@ -32,8 +32,8 @@