|
|
|
|
@ -61,10 +61,10 @@ class TeamScoreAdmin(SyncedObjectAdmin): |
|
|
|
|
search_fields = ['id'] |
|
|
|
|
|
|
|
|
|
class RoundAdmin(SyncedObjectAdmin): |
|
|
|
|
list_display = ['tournament', 'name', 'index', 'parent'] |
|
|
|
|
list_display = ['tournament', 'name', 'parent', 'index'] |
|
|
|
|
list_filter = [SimpleTournamentListFilter, SimpleIndexListFilter] |
|
|
|
|
search_fields = ['id'] |
|
|
|
|
ordering = ['parent'] |
|
|
|
|
ordering = ['parent', 'index'] |
|
|
|
|
|
|
|
|
|
class PlayerRegistrationAdmin(SyncedObjectAdmin): |
|
|
|
|
list_display = ['first_name', 'last_name', 'licence_id', 'rank'] |
|
|
|
|
@ -75,7 +75,7 @@ class PlayerRegistrationAdmin(SyncedObjectAdmin): |
|
|
|
|
class MatchAdmin(SyncedObjectAdmin): |
|
|
|
|
list_display = ['__str__', 'round', 'group_stage', 'start_date', 'end_date', 'index'] |
|
|
|
|
list_filter = [MatchTypeListFilter, MatchTournamentListFilter, SimpleIndexListFilter] |
|
|
|
|
ordering = ['-group_stage', 'round'] |
|
|
|
|
ordering = ['-group_stage', 'round', 'index'] |
|
|
|
|
|
|
|
|
|
class GroupStageAdmin(SyncedObjectAdmin): |
|
|
|
|
list_display = ['tournament', 'start_date', 'index'] |
|
|
|
|
|