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
13 lines
377 B
Python
13 lines
377 B
Python
import unfold
|
|
from unfold.admin import ModelAdmin as UnfoldModelAdmin
|
|
from django.contrib import admin
|
|
from .models import Location
|
|
|
|
|
|
@admin.register(Location)
|
|
class LocationAdmin(UnfoldModelAdmin):
|
|
list_display = ['name', 'is_active', 'created_at']
|
|
list_filter = ['is_active']
|
|
search_fields = ['name', 'address']
|
|
readonly_fields = ['created_at', 'updated_at']
|