Fixed #21281 -- Made override_settings act at class level when used as a TestCase decorator