]> err.no Git - peojumk/commitdiff
Bootstrappify messages classes
authorTollef Fog Heen <tfheen@err.no>
Sat, 28 Jul 2012 08:48:05 +0000 (10:48 +0200)
committerTollef Fog Heen <tfheen@err.no>
Sat, 28 Jul 2012 08:48:05 +0000 (10:48 +0200)
peojumk/settings.py

index 8b2f00e5a6d061a225c132ef78262433f9410886..a79f0ff6a5603c7dc5fa5fca2dceac83cf8ffba4 100644 (file)
@@ -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: