#34923: MESSAGE_TAGS ignored in 5.0a1
----------------------------------+------------------------------------
Reporter: James Gillard | Owner: nobody
Type: Bug | Status: new
Component: contrib.messages | Version: 5.0
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+------------------------------------
Comment (by Mariusz Felisiak):
James, Can you confirm that the following patch fixes this issue for you?
{{{#!diff
diff --git a/django/contrib/messages/storage/base.py
b/django/contrib/messages/storage/base.py
index 124049a5e2..5d89acfe69 100644
--- a/django/contrib/messages/storage/base.py
+++ b/django/contrib/messages/storage/base.py
@@ -1,7 +1,8 @@
from django.conf import settings
from django.contrib.messages import constants, utils
+from django.utils.functional import SimpleLazyObject
-LEVEL_TAGS = utils.get_level_tags()
+LEVEL_TAGS = SimpleLazyObject(utils.get_level_tags)
class Message:
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34923#comment:3>
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/0107018b5dcf1c33-1c349bed-89d2-445a-a570-506cdb8c8999-000000%40eu-central-1.amazonses.com.