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:
@@ -0,0 +1,12 @@
|
||||
import unfold
|
||||
from unfold.admin import ModelAdmin as UnfoldModelAdmin
|
||||
from django.contrib import admin
|
||||
from .models import Exercise
|
||||
|
||||
|
||||
@admin.register(Exercise)
|
||||
class ExerciseAdmin(UnfoldModelAdmin):
|
||||
list_display = ['name', 'category', 'exercise_type', 'is_active']
|
||||
list_filter = ['category', 'exercise_type', 'is_active']
|
||||
search_fields = ['name', 'description']
|
||||
readonly_fields = ['created_at', 'updated_at']
|
||||
Reference in New Issue
Block a user