mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #16447 -- Stopped using the setting name as the sender parameter for the setting_changed signal. Thanks, Alex Gaynor.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16530 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -24,10 +24,11 @@ class SettingGetter(object):
|
||||
testvalue = None
|
||||
|
||||
def signal_callback(sender, setting, value, **kwargs):
|
||||
global testvalue
|
||||
testvalue = value
|
||||
if setting == 'TEST':
|
||||
global testvalue
|
||||
testvalue = value
|
||||
|
||||
signals.setting_changed.connect(signal_callback, sender='TEST')
|
||||
signals.setting_changed.connect(signal_callback)
|
||||
|
||||
class SettingsTests(TestCase):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user