Notifying a player of a change in their standing in a tournament
I'm using the following Score model:

    class Score(models.Model):
        tournament = models.ForeignKey(Tournament)
        player = models.ForeignKey(User)
        score = models.IntegerField()
        datetime = models.DateTimeField()

For each tournament, standings are calculated based on players' scores. I want to notify the top n players in a given tournament if they drop in the standings. My thought is to store the positions of the top n players for each tournament, set a post_save signal on the Score model, and when a new score is entered into a tournament, compare the old and new positions and notify any players if their position dropped.
Notifying a player of a change in their standing in a tournament
===

I'm using the following Score model:

    class Score(models.Model):
        tournament = models.ForeignKey(Tournament)
        player = models.ForeignKey(User)
        score = models.IntegerField()
        datetime = models.DateTimeField()

For each tournament, standings are calculated based on players' scores. I want to notify the top n players in a given tournament if they drop in the standings. My thought is to store the positions of the top n players for each tournament, set a post_save signal on the Score model, and when a new score is entered into a tournament, compare the old and new positions and notify any players if their position dropped.