From 991200168288b4d92ef99110ccded16d30b19c0b Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sat, 28 Jul 2012 10:48:05 +0200 Subject: [PATCH] Bootstrappify messages classes --- peojumk/settings.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/peojumk/settings.py b/peojumk/settings.py index 8b2f00e..a79f0ff 100644 --- a/peojumk/settings.py +++ b/peojumk/settings.py @@ -163,6 +163,16 @@ LOGGING = { DATE_FORMAT = 'Y-m-d' SHORT_DATE_FORMAT = 'Y-m-d' +from django.contrib.messages import constants as messages + +MESSAGE_TAGS = { + messages.INFO: 'alert-info', + messages.SUCCESS: 'alert-success', + messages.WARNING: '', # default + messages.ERROR: 'alert-error' +} + + try: from local_settings import * except ImportError, exp: -- 2.39.5