|
@@ -12,7 +12,6 @@ import time # Needed for Windows
|
|
|
|
|
|
from django.conf import global_settings
|
|
from django.conf import global_settings
|
|
from django.core.exceptions import ImproperlyConfigured
|
|
from django.core.exceptions import ImproperlyConfigured
|
|
-from django.utils.datastructures import dict_merge
|
|
|
|
from django.utils.functional import LazyObject, empty
|
|
from django.utils.functional import LazyObject, empty
|
|
from django.utils import six
|
|
from django.utils import six
|
|
|
|
|
|
@@ -78,10 +77,6 @@ class BaseSettings(object):
|
|
elif name == "ALLOWED_INCLUDE_ROOTS" and isinstance(value, six.string_types):
|
|
elif name == "ALLOWED_INCLUDE_ROOTS" and isinstance(value, six.string_types):
|
|
raise ValueError("The ALLOWED_INCLUDE_ROOTS setting must be set "
|
|
raise ValueError("The ALLOWED_INCLUDE_ROOTS setting must be set "
|
|
"to a tuple, not a string.")
|
|
"to a tuple, not a string.")
|
|
- elif (hasattr(self, name) and name.isupper() and
|
|
|
|
- isinstance(getattr(self, name), dict) and isinstance(value, dict)):
|
|
|
|
-
|
|
|
|
- value = dict_merge(getattr(self, name), value)
|
|
|
|
object.__setattr__(self, name, value)
|
|
object.__setattr__(self, name, value)
|
|
|
|
|
|
|
|
|
|
@@ -150,7 +145,7 @@ class UserSettingsHolder(BaseSettings):
|
|
from the module specified in default_settings (if possible).
|
|
from the module specified in default_settings (if possible).
|
|
"""
|
|
"""
|
|
self.__dict__['_deleted'] = set()
|
|
self.__dict__['_deleted'] = set()
|
|
- self.__dict__['default_settings'] = default_settings
|
|
+ self.default_settings = default_settings
|
|
|
|
|
|
def __getattr__(self, name):
|
|
def __getattr__(self, name):
|
|
if name in self._deleted:
|
|
if name in self._deleted:
|