wg-backend-django/acer-env/lib/python3.10/site-packages/django/contrib/messages/utils.py

13 lines
256 B
Python
Raw Normal View History

2022-11-30 03:58:16 -05:00
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", {}),
}