def get_rating(self):
if not (self.votes and self.score):<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>return float(self.score)/(self.votes+self.field.weight)<EOL>
get_rating()

        Returns the weighted average rating.