diff --git a/allianceauth/project_template/project_name/settings/base.py b/allianceauth/project_template/project_name/settings/base.py index 18ec3634..af53215f 100644 --- a/allianceauth/project_template/project_name/settings/base.py +++ b/allianceauth/project_template/project_name/settings/base.py @@ -167,7 +167,7 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'static') # Bootstrap messaging css workaround MESSAGE_TAGS = { - messages.ERROR: 'danger' + messages.ERROR: 'danger error' } CACHES = { diff --git a/allianceauth/templates/allianceauth/messages.html b/allianceauth/templates/allianceauth/messages.html index e1c61455..41fc2756 100644 --- a/allianceauth/templates/allianceauth/messages.html +++ b/allianceauth/templates/allianceauth/messages.html @@ -13,7 +13,7 @@ {% elif message.level_tag == "warning" %} - {% elif message.level_tag == "danger" %} + {% elif "danger" in message.level_tag %} {% endif %}