Permalink
Browse files

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

…ngs before

accessing them. Thanks, Noam Raphael.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5713 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 5dd9a2a commit 41a6e41777a9d02cfcbfed534ebf4199158c7030 @malcolmt malcolmt committed Jul 16, 2007
Showing with 2 additions and 0 deletions.
  1. +2 −0 django/conf/__init__.py
View
2 django/conf/__init__.py
@@ -37,6 +37,8 @@ def __setattr__(self, name, value):
# __setattr__(), which would be an infinite loop.
self.__dict__['_target'] = value
else:
+ 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.