From 329a5293ddbdfd9450ce24009c42a8dca81ebb2f Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Thu, 31 Mar 2022 01:31:10 -0500 Subject: [PATCH] Fix field problem vote admin --- judge/admin/problem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/judge/admin/problem.py b/judge/admin/problem.py index c4097d7..1cad785 100644 --- a/judge/admin/problem.py +++ b/judge/admin/problem.py @@ -270,8 +270,8 @@ class ProblemPointsVoteAdmin(admin.ModelAdmin): def voter_point(self, obj): return round(obj.voter.performance_points) - voter_rating.short_description = _('Voter point') - voter_rating.admin_order_field = 'voter__performance_points' + voter_point.short_description = _('Voter point') + voter_point.admin_order_field = 'voter__performance_points' def vote_points(self, obj): return obj.points