From baa920585261d946098289465a9552c37d02c64f Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 25 Jan 2015 01:17:58 +0530 Subject: [PATCH] Fix issue with styling of error messages with bootstrap3 --- plinth/__main__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plinth/__main__.py b/plinth/__main__.py index 26c9d6983..e0bd5f5ea 100644 --- a/plinth/__main__.py +++ b/plinth/__main__.py @@ -18,6 +18,7 @@ import argparse import django.conf +from django.contrib.messages import constants as message_constants import django.core.management import django.core.wsgi import importlib @@ -201,6 +202,7 @@ def configure_django(): LOGIN_URL='users:login', LOGIN_REDIRECT_URL='apps:index', LOGOUT_URL='users:logout', + MESSAGE_TAGS={message_constants.ERROR: 'danger'}, MIDDLEWARE_CLASSES=( 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware',