mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 21:27:49 +02:00
Fix a RuntimeWarning introduced in Django 5 (#29)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from ram.utils import git_suffix
|
||||
|
||||
__version__ = "0.9.5"
|
||||
__version__ = "0.9.6"
|
||||
__version__ += git_suffix(__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
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user