The reason this happens is because `module_to_dict` reads the settings
from the `__dict__`. If you haven't manually configured your settings this
is fine because the default wrapped settings object preassigns all
settings to the `__dict__`. Since `UserSettingsHolder`, the class that
wraps manually configured settings, relies on the `__dir__` +
`__getattr__` pattern which allows the underlying default settings object
to be dynamic it doesn't store settings from the default settings in its
`__dict__`.
--
Ticket URL: <https://code.djangoproject.com/ticket/30057>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/30057#comment:1>
* cc: Hasan Ramezani (added)
* severity: Normal => Release blocker
Comment:
Marking as `master` release blocker since it's a regression introduced by
49b679371fe9beddcd23a93b5fdbadea914f37f8 (#29236).
--
Ticket URL: <https://code.djangoproject.com/ticket/30057#comment:2>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"573f44d62fe1e87e2c20a74eba5e20ca9ff0ed85" 573f44d6]:
{{{
#!CommitTicketReference repository=""
revision="573f44d62fe1e87e2c20a74eba5e20ca9ff0ed85"
Fixed #30057 -- Fixed diffsettings ignoring custom configured settings.
Regression in 49b679371fe9beddcd23a93b5fdbadea914f37f8.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30057#comment:3>
* status: closed => new
* resolution: fixed =>
--
Ticket URL: <https://code.djangoproject.com/ticket/30057#comment:4>
* status: new => closed
* resolution: => fixed
Comment:
The PR seems to be about additional test coverage which can be added
without an open ticket.
--
Ticket URL: <https://code.djangoproject.com/ticket/30057#comment:5>
Comment (by Tim Graham <timograham@…>):
In [changeset:"2c0fda7f206f2057df642939e51358944b313483" 2c0fda7f]:
{{{
#!CommitTicketReference repository=""
revision="2c0fda7f206f2057df642939e51358944b313483"
Refs #30057 -- Added more diffsettings tests.
The test in 573f44d62fe1e87e2c20a74eba5e20ca9ff0ed85 doesn't act as a
regression test.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30057#comment:6>