From a9f3cb7d3aa12dcaee428fe5717a0da822a84ca1 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 22 Jan 2021 22:33:48 +0100 Subject: [PATCH] Order tournaments by name --- apps/participation/tables.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/participation/tables.py b/apps/participation/tables.py index 7dea78d..af0915a 100644 --- a/apps/participation/tables.py +++ b/apps/participation/tables.py @@ -74,6 +74,7 @@ class TournamentTable(tables.Table): } model = Tournament fields = ('name', 'date',) + order_by = ('name', ) template_name = 'django_tables2/bootstrap4.html'