Author: mtredinnick
Date: 2007-07-15 23:45:45 -0500 (Sun, 15 Jul 2007)
New Revision: 5713
Modified:
django/trunk/django/conf/__init__.py
Log:
Fixed #4884 -- Fixed an initialisation problem when assigned to settings before
accessing them. Thanks, Noam Raphael.
Modified: django/trunk/django/conf/__init__.py
===================================================================
--- django/trunk/django/conf/__init__.py 2007-07-16 03:50:22 UTC (rev
5712)
+++ django/trunk/django/conf/__init__.py 2007-07-16 04:45:45 UTC (rev
5713)
@@ -37,6 +37,8 @@
# __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):
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---