Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/contrib/messages/utils.py
blob: 838860b4976e77c4a8fb4fc6186660bfb611e8d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
from django.conf import settings
from django.contrib.messages import constants


def get_level_tags():
    """
    Returns the message level tags.
    """
    level_tags = constants.DEFAULT_TAGS.copy()
    level_tags.update(getattr(settings, 'MESSAGE_TAGS', {}))
    return level_tags