This commit is contained in:
Holger Sielaff
2025-08-27 09:55:55 +02:00
commit 90c0ff61ed
107 changed files with 8535 additions and 0 deletions

24
frontend/admin.py Normal file
View File

@@ -0,0 +1,24 @@
# frontend/admin.py
from django.contrib import admin
from .models import UserProfile, FAQ
@admin.register(UserProfile)
class UserProfileAdmin(admin.ModelAdmin):
list_display = ('user', 'ldap_uid', 'user_group')
search_fields = ('user__username', 'ldap_uid')
list_filter = ('user__groups',)
@admin.register(FAQ)
class FAQAdmin(admin.ModelAdmin):
list_display = ('title', 'order', 'created_at', 'updated_at')
list_filter = ('created_at',)
search_fields = ('title', 'content')
list_editable = ('order',)
ordering = ('order', 'title')
fieldsets = (
(None, {
'fields': ('title', 'content', 'order')
}),
)