web/lib/django/contrib/messages/utils.py
author ymh <ymh.work@gmail.com>
Thu, 21 Oct 2010 17:55:22 +0200
changeset 54 53393dd1d878
parent 29 cc9b7e14412b
permissions -rw-r--r--
define version 00.014

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