Fixes missing CSS on error alerts.

This commit is contained in:
Johnny 2018-10-26 23:41:06 +00:00
parent 661f34f25e
commit d82ddb6499

View file

@ -13,6 +13,7 @@ always be sure of what you have changed and what is default behaviour.
"""
from builtins import range
from django.contrib.messages import constants as messages
from django.urls import reverse_lazy
import os
@ -828,6 +829,12 @@ AUTH_USERNAME_VALIDATORS = [
# Use a custom test runner that just tests Evennia-specific apps.
TEST_RUNNER = 'evennia.server.tests.EvenniaTestSuiteRunner'
# Messages and Bootstrap don't classify events the same way; this setting maps
# messages.error() to Bootstrap 'danger' classes.
MESSAGE_TAGS = {
messages.ERROR: 'danger',
}
######################################################################
# Django extensions
######################################################################