>This is exactly what Django used to do, actually, back when it was >Postgres-only. Such are the compromises of having to support other >DBs. :-/
Maybe it would be a good idea to add stuff to the Django backend modules so that real databases can make use of referential integrity and cascaded deletes and stuff like that - while providing hooks to add manual stuff for those databases, that don't support this? Something like a before_bulk_delete(list_of_related_tables) hook that is run before the actual delete and would have to construct the needed statements for related tables to delete or update related rows, while in real databases this is just a dummy that doesn't do anything, because the database already does everything right? bye, Georg