Initial commit: WrestleDesk full project

- Django backend with DRF (clubs, wrestlers, trainers, exercises, templates, trainings, homework, locations, leistungstest)
- Next.js 16 frontend with React, Shadcn UI, Tailwind
- JWT authentication
- Full CRUD for all entities
- Calendar view for trainings
- Homework management system
- Leistungstest tracking
This commit is contained in:
Andrej Spielmann
2026-03-26 13:24:57 +01:00
commit 3fefc550fe
256 changed files with 38295 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
import unfold
from unfold.admin import ModelAdmin as UnfoldModelAdmin
from django.contrib import admin
from .models import Wrestler
@admin.register(Wrestler)
class WrestlerAdmin(UnfoldModelAdmin):
list_display = ['first_name', 'last_name', 'club', 'group', 'weight_category', 'is_active']
list_filter = ['group', 'is_active', 'club', 'gender']
search_fields = ['first_name', 'last_name', 'license_number']
readonly_fields = ['created_at', 'updated_at', 'calculate_age']
raw_id_fields = ['club']
fieldsets = (
('Personal Info', {
'fields': ('first_name', 'last_name', 'club', 'group', 'gender', 'date_of_birth')
}),
('Wrestling Info', {
'fields': ('weight_category', 'weight_kg')
}),
('License & Documents', {
'fields': ('license_number', 'license_expiry', 'photo', 'license_scan')
}),
('Status', {
'fields': ('is_active', 'notes')
}),
('Metadata', {
'fields': ('created_at', 'updated_at'),
'classes': ('collapse',)
}),
)