2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-09-13 14:11:37 +00:00

feature(BE): add customization for admin.site.site_header (#10179) to

* feature: add customization for admin.site.site_header

* fix: style issue

---------

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
Daniil Chudo
2025-08-16 12:44:07 +04:00
committed by GitHub
parent fa15466ce4
commit ebc9213033
3 changed files with 7 additions and 1 deletions

View File

@@ -39,10 +39,14 @@ from .api import (
VersionTextView,
VersionView,
)
from .config import get_setting
from .magic_login import GetSimpleLoginView
from .views import auth_request
admin.site.site_header = 'InvenTree Admin'
# Set admin header from config or use default
admin.site.site_header = get_setting(
'INVENTREE_SITE_HEADER', 'customize.site_header', 'InvenTree Admin'
)
apipatterns = [

View File

@@ -217,6 +217,7 @@ ldap:
# Customization options
# Ref: https://docs.inventree.org/en/stable/start/config/#customization-options
# customize:
# site_header: 'Custom Admin Panel' # Django admin panel header text
# login_message: InvenTree demo instance - <a href='https://inventree.org/demo.html'> Click here for login details</a>
# navbar_message: <h6>InvenTree demo mode <a href='https://inventree.org/demo.html'><span class='fas fa-info-circle'></span></a></h6>
# hide_admin_link: true