Skip to content

Commit

Permalink
Merge pull request #630 from battlecode/sort-tour-rounds-by-tour-well
Browse files Browse the repository at this point in the history
Sort tournamentRounds by tournament name
  • Loading branch information
n8kim1 authored Feb 1, 2023
2 parents 51762ec + f9bd0c3 commit 8fbe3b4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/siarnaq/api/episodes/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,12 @@ class TournamentRoundAdmin(admin.ModelAdmin):
)
list_filter = ("tournament", "release_status")
list_select_related = ("tournament",)
ordering = ("-tournament__submission_freeze", "display_order", "external_id")
ordering = (
"-tournament__submission_freeze",
"tournament__name_short",
"display_order",
"external_id",
)
readonly_fields = ("external_id", "in_progress")

def get_queryset(self, request):
Expand Down

0 comments on commit 8fbe3b4

Please sign in to comment.