This commit is contained in:
IGNY8 VPS (Salman)
2025-12-14 18:51:54 +00:00
parent a518997467
commit 4b81ac07f5
3 changed files with 12 additions and 1310 deletions

View File

@@ -7,6 +7,7 @@ from django.contrib.admin.apps import AdminConfig
from django.apps import apps
from django.urls import path, reverse_lazy
from django.shortcuts import redirect
from django.contrib.admin import sites
from unfold.admin import ModelAdmin as UnfoldModelAdmin
from unfold.sites import UnfoldAdminSite
@@ -179,7 +180,3 @@ class Igny8AdminSite(UnfoldAdminSite):
})
return organized_apps
# Create admin site instance
admin_site = Igny8AdminSite(name='admin')

View File

@@ -624,7 +624,7 @@ UNFOLD = {
"SITE_TITLE": "IGNY8 Administration",
"SITE_HEADER": "IGNY8 Admin",
"SITE_URL": "/",
"SITE_SYMBOL": "speed", # Symbol from Material icons
"SITE_SYMBOL": "rocket_launch", # Symbol from Material icons
"SHOW_HISTORY": True, # Show history for models with simple_history
"SHOW_VIEW_ON_SITE": True, # Show "View on site" button
"COLORS": {
@@ -642,9 +642,17 @@ UNFOLD = {
"950": "2 6 23",
},
},
"EXTENSIONS": {
"modeltranslation": {
"flags": {
"en": "🇬🇧",
"fr": "🇫🇷",
},
},
},
"SIDEBAR": {
"show_search": True, # Show search in sidebar
"show_all_applications": True, # Show all apps (we'll organize via custom get_app_list)
"show_search": True,
"show_all_applications": True,
},
}

File diff suppressed because it is too large Load Diff