fix 3
This commit is contained in:
@@ -7,6 +7,7 @@ from django.contrib.admin.apps import AdminConfig
|
|||||||
from django.apps import apps
|
from django.apps import apps
|
||||||
from django.urls import path, reverse_lazy
|
from django.urls import path, reverse_lazy
|
||||||
from django.shortcuts import redirect
|
from django.shortcuts import redirect
|
||||||
|
from django.contrib.admin import sites
|
||||||
from unfold.admin import ModelAdmin as UnfoldModelAdmin
|
from unfold.admin import ModelAdmin as UnfoldModelAdmin
|
||||||
from unfold.sites import UnfoldAdminSite
|
from unfold.sites import UnfoldAdminSite
|
||||||
|
|
||||||
@@ -179,7 +180,3 @@ class Igny8AdminSite(UnfoldAdminSite):
|
|||||||
})
|
})
|
||||||
|
|
||||||
return organized_apps
|
return organized_apps
|
||||||
|
|
||||||
|
|
||||||
# Create admin site instance
|
|
||||||
admin_site = Igny8AdminSite(name='admin')
|
|
||||||
|
|||||||
@@ -624,7 +624,7 @@ UNFOLD = {
|
|||||||
"SITE_TITLE": "IGNY8 Administration",
|
"SITE_TITLE": "IGNY8 Administration",
|
||||||
"SITE_HEADER": "IGNY8 Admin",
|
"SITE_HEADER": "IGNY8 Admin",
|
||||||
"SITE_URL": "/",
|
"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_HISTORY": True, # Show history for models with simple_history
|
||||||
"SHOW_VIEW_ON_SITE": True, # Show "View on site" button
|
"SHOW_VIEW_ON_SITE": True, # Show "View on site" button
|
||||||
"COLORS": {
|
"COLORS": {
|
||||||
@@ -642,9 +642,17 @@ UNFOLD = {
|
|||||||
"950": "2 6 23",
|
"950": "2 6 23",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
"EXTENSIONS": {
|
||||||
|
"modeltranslation": {
|
||||||
|
"flags": {
|
||||||
|
"en": "🇬🇧",
|
||||||
|
"fr": "🇫🇷",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
"SIDEBAR": {
|
"SIDEBAR": {
|
||||||
"show_search": True, # Show search in sidebar
|
"show_search": True,
|
||||||
"show_all_applications": True, # Show all apps (we'll organize via custom get_app_list)
|
"show_all_applications": True,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user