fix: ordering of submissions by score
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Luca 2024-02-14 19:40:19 +01:00
parent 8b1b807ef3
commit c7d67d97f6
3 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
__version__ = "0.14.0" __version__ = "0.14.1"

View File

@ -65,8 +65,8 @@
<tr> <tr>
<th> <th>
{% translate "Rating" %} {% translate "Rating" %}
<a href="?{% url_replace request 'sort' 'score' %}"><i class="fa fa-caret-down" title="{% translate "Sort by rating (10-0)" %}"></i></a> <a href="?{% url_replace request 'sort' 'score__value' %}"><i class="fa fa-caret-down" title="{% translate "Sort by rating (0-10)" %}"></i></a>
<a href="?{% url_replace request 'sort' '-score' %}"><i class="fa fa-caret-up" title="{% translate "Sort by rating (0-10)" %}"></i></a> <a href="?{% url_replace request 'sort' '-score__value' %}"><i class="fa fa-caret-up" title="{% translate "Sort by rating (10-0)" %}"></i></a>
</th> </th>
<th> <th>
{% translate "Title" %} {% translate "Title" %}

View File

@ -479,7 +479,7 @@ class AssigneeView(EventPermissionRequired, FormView, SingleObjectMixin):
class EnhancedSubmissionList(SubmissionList): 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" template_name = "pretalx_musicrate/enhanced_list.html"
def get_filter_form(self): def get_filter_form(self):