我有这个简单的模型:
class Ranking(model.Model):
athlete = model.ForeignKey(Athlete, on_delete=models.CASCADE)
vote_judge_1 = models.FloatField(default=0)
vote_judge_2 = models.FloatField(default=0)
vote_judge_3 = models.FloatField(default=0)
final_rank = ???
现在,自动获得final_rank的最佳方法是什么?每次法官更新或保存他们的选票时,以简单的算术平均值自动填充?