Fix a RuntimeWarning introduced in Django 5 (#29)

This commit is contained in:
2024-01-20 22:08:10 +01:00
committed by GitHub
parent 8400a5acd3
commit 4428b8c11d
7 changed files with 147 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
from ram.utils import git_suffix
__version__ = "0.9.5"
__version__ = "0.9.6"
__version__ += git_suffix(__file__)

View File

@@ -1,10 +1,4 @@
from django.contrib import admin
from django.db.utils import OperationalError, ProgrammingError
from portal.utils import get_site_conf
from django.conf import settings
try:
site_name = get_site_conf().site_name
except (OperationalError, ProgrammingError):
site_name = "Train Assets Manager"
admin.site.site_header = site_name
admin.site.site_header = settings.SITE_NAME

View File

@@ -149,6 +149,8 @@ COUNTRIES_OVERRIDE = {
"XX": "None",
}
SITE_NAME = "Railroad Assets Manger"
# Image used on cards without a custom image uploaded.
# The file must be placed in the root of the 'static' folder
DEFAULT_CARD_IMAGE = "coming_soon.svg"