|
|
|
@ -299,7 +299,7 @@ class TeamRegistrationAdmin(SyncedObjectAdmin): |
|
|
|
class TeamScoreAdmin(SyncedObjectAdmin): |
|
|
|
class TeamScoreAdmin(SyncedObjectAdmin): |
|
|
|
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', 'team_registration__player_registrations__first_name', 'team_registration__player_registrations__last_name'] |
|
|
|
raw_id_fields = ['team_registration', 'match'] # Add this line |
|
|
|
raw_id_fields = ['team_registration', 'match'] # Add this line |
|
|
|
list_per_page = 50 # Controls pagination on the list view |
|
|
|
list_per_page = 50 # Controls pagination on the list view |
|
|
|
|
|
|
|
|
|
|
|
|