|
|
|
@ -357,12 +357,13 @@ class TeamRegistrationAdmin(SyncedObjectAdmin): |
|
|
|
list_display = ['player_names', 'group_stage', 'name', 'tournament', 'registration_date'] |
|
|
|
list_display = ['player_names', 'group_stage', 'name', 'tournament', 'registration_date'] |
|
|
|
list_filter = [SimpleTournamentListFilter] |
|
|
|
list_filter = [SimpleTournamentListFilter] |
|
|
|
search_fields = ['id'] |
|
|
|
search_fields = ['id'] |
|
|
|
|
|
|
|
raw_id_fields = ['related_user', 'tournament'] |
|
|
|
|
|
|
|
|
|
|
|
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', 'team_registration__player_registrations__first_name', 'team_registration__player_registrations__last_name'] |
|
|
|
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'] |
|
|
|
list_per_page = 50 # Controls pagination on the list view |
|
|
|
list_per_page = 50 # Controls pagination on the list view |
|
|
|
|
|
|
|
|
|
|
|
def get_queryset(self, request): |
|
|
|
def get_queryset(self, request): |
|
|
|
|