override_settings cannot be nested
|Reported by:||Oliver Beattie||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Due to to the way
override_settings stores the underlying settings object, they can't properly be nested. They grab the value seen at the time they were instantiated, which is not necessarily the same time as when they are used (especially when using class [or function] decorators).
I have made a test-case and patch for this (GitHub pull request)