implement report feature

This commit is contained in:
Maximilian 2025-06-10 12:46:53 +02:00
parent 4218ee6b7d
commit d6d47f714a
31 changed files with 2472 additions and 8 deletions

View file

@ -65,14 +65,14 @@ JAZZMIN_SETTINGS = {
# List of apps (and/or models) to base side menu ordering off of (does not need to contain all apps/models)
# "order_with_respect_to": ["auth", "books", "books.author", "books.book"],
# Custom links to append to app groups, keyed on app name
# "custom_links": {
# "books": [{
# "name": "Make Messages",
# "url": "make_messages",
# "icon": "fas fa-comments",
# "permissions": ["books.view_book"]
# }]
# },
"custom_links": {
"reports": [{
"name": "Reports Dashboard",
"url": "/admin/reports/",
"icon": "fas fa-chart-bar",
"permissions": ["is_staff"]
}]
},
# Custom icons for side menu apps/models See https://fontawesome.com/icons?d=gallery&m=free&v=5.0.0,5.0.1,5.0.10,5.0.11,5.0.12,5.0.13,5.0.2,5.0.3,5.0.4,5.0.5,5.0.6,5.0.7,5.0.8,5.0.9,5.1.0,5.1.1,5.2.0,5.3.0,5.3.1,5.4.0,5.4.1,5.4.2,5.13.0,5.12.0,5.11.2,5.11.1,5.10.0,5.9.0,5.8.2,5.8.1,5.7.2,5.7.1,5.7.0,5.6.3,5.5.0,5.4.2
# for the full list of 5.13.0 free icon classes
"icons": {
@ -89,6 +89,9 @@ JAZZMIN_SETTINGS = {
"contact.Contact": "fas fa-solid fa-address-card",
"contact.ContactTag": "fas fa-solid fa-tags",
"sendemail.Emailadress": "fas fa-solid fa-envelope",
"reports.AutomaticReport": "fas fa-solid fa-chart-line",
"reports.ReportLog": "fas fa-solid fa-history",
"reports": "fas fa-solid fa-chart-bar",
},
# Icons that are used when one is not manually specified
# "default_icon_parents": "fas fa-chevron-circle-right",

View file

@ -85,6 +85,7 @@ INSTALLED_APPS = [
"contact",
"costs",
"export",
"reports",
"sendemail",
]

View file

@ -14,6 +14,7 @@ urlpatterns = [
path("export/", include("export.urls")),
# Admin
path("admin/", admin.site.urls),
path("admin/reports/", include("reports.urls", namespace="reports")),
# Allauth
path("accounts/", include("allauth.urls")),
# CKEditor 5