Initial commit

This commit is contained in:
Felix Baumann
2026-06-27 17:07:34 +00:00
commit fb47c53d52
256 changed files with 21270 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
from django.contrib import admin
from .models import Role, UserProfile
@admin.register(Role)
class RoleAdmin(admin.ModelAdmin):
list_display = [
"name",
]
search_fields = [
"name",
]
@admin.register(UserProfile)
class UserProfileAdmin(admin.ModelAdmin):
list_display = [
"user",
"role",
]
list_filter = [
"role",
]
search_fields = [
"user__username",
"user__first_name",
"user__last_name",
"user__email",
]