From 85821a6fcd91c09c1579787f31a388119ae237c3 Mon Sep 17 00:00:00 2001 From: Rushil Umaretiya Date: Sat, 20 Feb 2021 20:27:25 -0500 Subject: [PATCH] feat: added extra fields to admin --- innovate/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/innovate/admin.py b/innovate/admin.py index bbef642..acaedcd 100644 --- a/innovate/admin.py +++ b/innovate/admin.py @@ -26,7 +26,7 @@ admin_site.register(Score, ScoreAdmin) class CompetitorAdmin(admin.ModelAdmin): list_display = ('__str__', 'email', 'team') -admin_site.register(Competitor, CompetitorAdmin) +admin_site.register(Competitor) class CompetitorInline(admin.TabularInline): model = Competitor @@ -37,7 +37,7 @@ class TeamAdmin(admin.ModelAdmin): CompetitorInline, ] - list_display = ('number', 'name', 'feedback_recieved', 'score_average') + list_display = ('name', 'number', 'score_average', 'feedback_recieved') ordering = ('number',) admin_site.register(Team, TeamAdmin) \ No newline at end of file