3fefc550fe
- 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
14 lines
450 B
Python
14 lines
450 B
Python
import unfold
|
|
from unfold.admin import ModelAdmin as UnfoldModelAdmin
|
|
from django.contrib import admin
|
|
from .models import Trainer
|
|
|
|
|
|
@admin.register(Trainer)
|
|
class TrainerAdmin(UnfoldModelAdmin):
|
|
list_display = ['first_name', 'last_name', 'club', 'email', 'is_active']
|
|
list_filter = ['is_active', 'club']
|
|
search_fields = ['first_name', 'last_name', 'email']
|
|
readonly_fields = ['created_at', 'updated_at']
|
|
raw_id_fields = ['club']
|