Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 41a6e41777a9d02cfcbfed534ebf4199158c7030 1 parent 5dd9a2a
Malcolm Tredinnick authored July 16, 2007

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  django/conf/__init__.py
2  django/conf/__init__.py
@@ -37,6 +37,8 @@ def __setattr__(self, name, value):
37 37
             # __setattr__(), which would be an infinite loop.
38 38
             self.__dict__['_target'] = value
39 39
         else:
  40
+            if self._target is None:
  41
+                self._import_settings()
40 42
             setattr(self._target, name, value)
41 43
 
42 44
     def _import_settings(self):

0 notes on commit 41a6e41

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