phase3: add normalized domain schema, admin, services, and multistage docker build
This commit is contained in:
23
apps/stats/admin.py
Normal file
23
apps/stats/admin.py
Normal file
@ -0,0 +1,23 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from .models import PlayerSeason, PlayerSeasonStats
|
||||
|
||||
|
||||
@admin.register(PlayerSeason)
|
||||
class PlayerSeasonAdmin(admin.ModelAdmin):
|
||||
list_display = ("player", "season", "team", "competition", "games_played", "minutes_played")
|
||||
list_filter = ("season", "competition")
|
||||
search_fields = ("player__full_name", "team__name", "competition__name", "season__label")
|
||||
|
||||
|
||||
@admin.register(PlayerSeasonStats)
|
||||
class PlayerSeasonStatsAdmin(admin.ModelAdmin):
|
||||
list_display = (
|
||||
"player_season",
|
||||
"points",
|
||||
"rebounds",
|
||||
"assists",
|
||||
"usage_rate",
|
||||
"true_shooting_pct",
|
||||
)
|
||||
search_fields = ("player_season__player__full_name",)
|
||||
Reference in New Issue
Block a user