From c7d67d97f6e1349d2fde30bb8c2d9c8297f444cc Mon Sep 17 00:00:00 2001 From: Luca Date: Wed, 14 Feb 2024 19:40:19 +0100 Subject: [PATCH] fix: ordering of submissions by score --- pretalx_musicrate/__init__.py | 2 +- .../templates/pretalx_musicrate/enhanced_list.html | 4 ++-- pretalx_musicrate/views.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pretalx_musicrate/__init__.py b/pretalx_musicrate/__init__.py index 9e78220..f075dd3 100644 --- a/pretalx_musicrate/__init__.py +++ b/pretalx_musicrate/__init__.py @@ -1 +1 @@ -__version__ = "0.14.0" +__version__ = "0.14.1" diff --git a/pretalx_musicrate/templates/pretalx_musicrate/enhanced_list.html b/pretalx_musicrate/templates/pretalx_musicrate/enhanced_list.html index 75bb6ce..8bd6ded 100644 --- a/pretalx_musicrate/templates/pretalx_musicrate/enhanced_list.html +++ b/pretalx_musicrate/templates/pretalx_musicrate/enhanced_list.html @@ -65,8 +65,8 @@ {% translate "Rating" %} - - + + {% translate "Title" %} diff --git a/pretalx_musicrate/views.py b/pretalx_musicrate/views.py index d1f7a12..84fd923 100644 --- a/pretalx_musicrate/views.py +++ b/pretalx_musicrate/views.py @@ -479,7 +479,7 @@ class AssigneeView(EventPermissionRequired, FormView, SingleObjectMixin): class EnhancedSubmissionList(SubmissionList): - sortable_fields = ("code", "score", "title", "state", "assignee") + sortable_fields = ("code", "score__value", "title", "state", "assignee") template_name = "pretalx_musicrate/enhanced_list.html" def get_filter_form(self):