mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
Add possibility to inject js in head (analytics)
This commit is contained in:
@@ -3,7 +3,34 @@ from solo.admin import SingletonModelAdmin
|
||||
|
||||
from portal.models import SiteConfiguration, Flatpage
|
||||
|
||||
admin.site.register(SiteConfiguration, SingletonModelAdmin)
|
||||
@admin.register(SiteConfiguration)
|
||||
class SiteConfigurationAdmin(SingletonModelAdmin):
|
||||
fieldsets = (
|
||||
(
|
||||
None,
|
||||
{
|
||||
"fields": (
|
||||
"site_name",
|
||||
"site_author",
|
||||
"about",
|
||||
"items_per_page",
|
||||
"items_ordering",
|
||||
"footer",
|
||||
"footer_extended",
|
||||
)
|
||||
},
|
||||
),
|
||||
(
|
||||
"Advanced",
|
||||
{
|
||||
"classes": ("collapse",),
|
||||
"fields": (
|
||||
"show_version",
|
||||
"extra_head",
|
||||
),
|
||||
},
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
@admin.register(Flatpage)
|
||||
|
Reference in New Issue
Block a user