wg-backend-django/dell-env/lib/python3.11/site-packages/django/contrib/messages/utils.py
2023-10-30 14:40:43 +07:00

13 lines
256 B
Python

from django.conf import settings
from django.contrib.messages import constants
def get_level_tags():
"""
Return the message level tags.
"""
return {
**constants.DEFAULT_TAGS,
**getattr(settings, "MESSAGE_TAGS", {}),
}