This can be a bug, or I'm doing something terrible wrong...
This is how my model looks like:
class Score(models.Model):
. . .
class Round(models.Model):
. . .
class Game(models.Model):
round = models.ForeignKey(Round)
. . .
def save(self):
""" Recompute the scores in the Score table """
def delete(self):
""" Recompute the scores in the Score table """
When I delete a game, with game.delete() (or through the admin,
generic_view...), delete method is called and the Score table is updated.
But when I delete a round, with round.delete(), all games conected with
that round are also deleted, but the Score table isn't updated, that is,
the delete method from the game objects is not called?!?!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---