mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-12-18 14:55:09 +01:00
26 lines
577 B
Python
26 lines
577 B
Python
"""
|
|
Admin classes for custom_css app
|
|
"""
|
|
|
|
# Django
|
|
from django.contrib import admin
|
|
|
|
# Django Solos
|
|
from solo.admin import SingletonModelAdmin
|
|
|
|
# Alliance Auth Custom CSS
|
|
from allianceauth.custom_css.models import CustomCSS
|
|
from allianceauth.custom_css.forms import CustomCSSAdminForm
|
|
|
|
|
|
@admin.register(CustomCSS)
|
|
class CustomCSSAdmin(SingletonModelAdmin):
|
|
"""
|
|
Custom CSS Admin
|
|
"""
|
|
|
|
form = CustomCSSAdminForm
|
|
|
|
# Leave this here for when we decide to add syntax highlighting to the CSS editor
|
|
# change_form_template = 'custom_css/admin/change_form.html'
|