mirror of
https://github.com/django/django.git
synced 2025-07-19 09:09:13 +00:00
[1.0.X] Fixed #10392 -- Fixed an oversight from the refactoring in r9947.
Backport of r9953 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9954 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
1a5588fceb
commit
888b154e9b
@ -43,7 +43,7 @@ class LazySettings(LazyObject):
|
|||||||
parameter sets where to retrieve any unspecified values from (its
|
parameter sets where to retrieve any unspecified values from (its
|
||||||
argument must support attribute access (__getattr__)).
|
argument must support attribute access (__getattr__)).
|
||||||
"""
|
"""
|
||||||
if self._target != None:
|
if self._wrapped != None:
|
||||||
raise RuntimeError, 'Settings already configured.'
|
raise RuntimeError, 'Settings already configured.'
|
||||||
holder = UserSettingsHolder(default_settings)
|
holder = UserSettingsHolder(default_settings)
|
||||||
for name, value in options.items():
|
for name, value in options.items():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user