@override_settings alike decorator