﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
21263	override_settings in inherited classes should take precedence	Sylvain Fankhauser	nobody	"Consider the following test case:


{{{
@override_settings(TEST='super')
class TestSettingsOverrideInheritanceSuper(TestCase):
    def test_override_settings_inheritance(self):
        self.assertEqual(settings.TEST, 'super')


@override_settings(TEST='child')
class TestSettingsOverrideInheritanceChild(TestSettingsOverrideInheritanceSuper):
    def test_override_settings_inheritance(self):
        self.assertEqual(settings.TEST, 'child')
}}}

The expected behaviour is that the 2 tests pass. Instead, this will fail because the `_pre_setup` method of `override_settings` enables the current class settings before running the `original_pre_setup` method (which will enable the parent class settings).

You can easily reproduce the issue by using the code above in any test suite."	Bug	closed	Testing framework	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
