Viktor wrote:
> 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?!?!
Looking at the code I see that when an objects is .delete()d all the
related objects are gathered up and then it calls delete_objects:
[django/db/models/base.py]
# Actually delete the objects
delete_objects(seen_objs)
which does the actual deletion from the DB. Hence the .delete() method
wont be called for related objects.
So I'd say you weren't doing something terribly wrong, but it might
not be a bug either. If this behaviour is desirable (and I cant see why
it isn't) then it needs a bit of rewriting...
Barry
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---