Skip to content

Commit

Permalink
Fixed #4884 -- Fixed an initialisation problem when assigned to setti…
Browse files Browse the repository at this point in the history
…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
malcolmt committed Jul 16, 2007
1 parent 5dd9a2a commit 41a6e41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions django/conf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 41a6e41

Please sign in to comment.