Fix field problem vote admin
This commit is contained in:
parent
ca2c74af7c
commit
329a5293dd
1 changed files with 2 additions and 2 deletions
|
@ -270,8 +270,8 @@ class ProblemPointsVoteAdmin(admin.ModelAdmin):
|
||||||
|
|
||||||
def voter_point(self, obj):
|
def voter_point(self, obj):
|
||||||
return round(obj.voter.performance_points)
|
return round(obj.voter.performance_points)
|
||||||
voter_rating.short_description = _('Voter point')
|
voter_point.short_description = _('Voter point')
|
||||||
voter_rating.admin_order_field = 'voter__performance_points'
|
voter_point.admin_order_field = 'voter__performance_points'
|
||||||
|
|
||||||
def vote_points(self, obj):
|
def vote_points(self, obj):
|
||||||
return obj.points
|
return obj.points
|
||||||
|
|
Loading…
Reference in a new issue