Also allowed a non-overridden setting to be deleted

Refs #20032, #18824. Thanks ztorstri at gmail.com for the report.
This commit is contained in:
Claude Paroz 2014-04-12 15:31:37 +02:00
parent 3e3a7372f5
commit 3417ba0309
3 changed files with 13 additions and 2 deletions

View file

@ -1193,6 +1193,11 @@ have been overridden, like this::
del settings.LOGIN_URL
...
.. versionchanged:: 1.7
Previously, you could only simulate the deletion of a setting which was
explicitely overridden.
When overriding settings, make sure to handle the cases in which your app's
code uses a cache or similar feature that retains state even if the setting is
changed. Django provides the :data:`django.test.signals.setting_changed`