Skip to content
Browse files

Fixed #4884 -- Fixed an initialisation problem when assigned to setti…

…ngs before

accessing them. Thanks, Noam Raphael.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 5dd9a2a commit 41a6e41777a9d02cfcbfed534ebf4199158c7030 @malcolmt malcolmt committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 django/conf/
2 django/conf/
@@ -37,6 +37,8 @@ def __setattr__(self, name, value):
# __setattr__(), which would be an infinite loop.
self.__dict__['_target'] = value
+ if self._target is None:
+ self._import_settings()
setattr(self._target, name, value)
def _import_settings(self):

0 comments on commit 41a6e41

Please sign in to comment.
Something went wrong with that request. Please try again.