mirror of
https://github.com/Rushilwiz/launchx.git
synced 2025-04-05 04:30:19 -04:00
feat: added extra fields to admin
This commit is contained in:
parent
812a2242fe
commit
85821a6fcd
|
@ -26,7 +26,7 @@ admin_site.register(Score, ScoreAdmin)
|
||||||
class CompetitorAdmin(admin.ModelAdmin):
|
class CompetitorAdmin(admin.ModelAdmin):
|
||||||
list_display = ('__str__', 'email', 'team')
|
list_display = ('__str__', 'email', 'team')
|
||||||
|
|
||||||
admin_site.register(Competitor, CompetitorAdmin)
|
admin_site.register(Competitor)
|
||||||
|
|
||||||
class CompetitorInline(admin.TabularInline):
|
class CompetitorInline(admin.TabularInline):
|
||||||
model = Competitor
|
model = Competitor
|
||||||
|
@ -37,7 +37,7 @@ class TeamAdmin(admin.ModelAdmin):
|
||||||
CompetitorInline,
|
CompetitorInline,
|
||||||
]
|
]
|
||||||
|
|
||||||
list_display = ('number', 'name', 'feedback_recieved', 'score_average')
|
list_display = ('name', 'number', 'score_average', 'feedback_recieved')
|
||||||
ordering = ('number',)
|
ordering = ('number',)
|
||||||
|
|
||||||
admin_site.register(Team, TeamAdmin)
|
admin_site.register(Team, TeamAdmin)
|
Loading…
Reference in New Issue
Block a user