#33303: LEVEL_TAGS not updated when using @override_settings
----------------------------------+------------------------------------
Reporter: Dan Yishai | Owner: nobody
Type: Bug | Status: new
Component: contrib.messages | Version: 3.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+------------------------------------
Changes (by Mariusz Felisiak):
* cc: Claude Paroz (added)
* stage: Unreviewed => Accepted
Comment:
`LEVEL_TAGS` is a constant defined in the
`django.contrib.messages.storage.base module` that's why it needs to be
updated after changing `MESSAGE_TAGS` (see #16574 and
[https://github.com/django/django/blob/a7e7043c8746933dafce652507d3b821801cdc7d/tests/messages_tests/base.py#L25-L36
override_settings_tags()] hook). It should be possible to add a
`setting_changed` receiver and update `LEVEL_TAGS` when needed.
--
Ticket URL: <https://code.djangoproject.com/ticket/33303#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.5884d6d3589641f1875c83b47bd390cb%40djangoproject.com.