|
|
|
@ -61,10 +61,7 @@ class TeamScoreAdmin(admin.ModelAdmin): |
|
|
|
list_display = ['team_registration', 'score', 'walk_out', 'match'] |
|
|
|
list_display = ['team_registration', 'score', 'walk_out', 'match'] |
|
|
|
list_filter = [TeamScoreTournamentListFilter] |
|
|
|
list_filter = [TeamScoreTournamentListFilter] |
|
|
|
search_fields = ['id'] |
|
|
|
search_fields = ['id'] |
|
|
|
|
|
|
|
raw_id_fields = ['team_registration', 'match'] # Add this line |
|
|
|
def get_queryset(self, request): |
|
|
|
|
|
|
|
qs = super().get_queryset(request) |
|
|
|
|
|
|
|
return qs.select_related('team_registration', 'match') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class RoundAdmin(admin.ModelAdmin): |
|
|
|
class RoundAdmin(admin.ModelAdmin): |
|
|
|
list_display = ['tournament', 'name', 'index', 'parent'] |
|
|
|
list_display = ['tournament', 'name', 'index', 'parent'] |
|
|
|
|