All files for deployment ready and tested - further development in this repo.

This commit is contained in:
2025-09-22 10:42:52 +02:00
parent 57b738e9ce
commit 12c3181ad2
394 changed files with 89982 additions and 0 deletions

19
rollen/admin.py Normal file
View File

@@ -0,0 +1,19 @@
from django.contrib import admin
from nested_admin import NestedStackedInline, NestedModelAdmin, NestedTabularInline
from django import forms
from .models import Rolle, RollenBeschreibung
class RollenBeschreibungInline(NestedStackedInline):
model = RollenBeschreibung
extra = 0
sortable_field_name = "order"
ordering = ("order",)
show_change_link = True
@admin.register(Rolle)
class RollenAdmin(NestedModelAdmin):
search_fields = ('name',)
ordering = ('name',)
inlines = [RollenBeschreibungInline]