Re: What's the expected behavior of (cached) instances of deleted objects?

2009-11-26 Thread Johannes Dollinger
Am 26.11.2009 um 12:09 schrieb Russell Keith-Magee: > On Thu, Nov 26, 2009 at 5:39 PM, Johannes Dollinger > wrote: >> >> Am 26.11.2009 um 03:47 schrieb Russell Keith-Magee: >> >>> On Thu, Nov 26, 2009 at 12:04 AM, Johannes Dollinger >>>

Re: What's the expected behavior of (cached) instances of deleted objects?

2009-11-26 Thread Russell Keith-Magee
On Thu, Nov 26, 2009 at 5:39 PM, Johannes Dollinger wrote: > > Am 26.11.2009 um 03:47 schrieb Russell Keith-Magee: > >> On Thu, Nov 26, 2009 at 12:04 AM, Johannes Dollinger >> wrote: >>> QuerySet.delete() currently sets

Re: What's the expected behavior of (cached) instances of deleted objects?

2009-11-25 Thread Russell Keith-Magee
On Thu, Nov 26, 2009 at 12:04 AM, Johannes Dollinger wrote: > QuerySet.delete() currently sets the primary key and all nullable > foreign keys (to deleted objects) of instances passed to signal > handlers to None. No cache is updated. > > Model.delete() will

What's the expected behavior of (cached) instances of deleted objects?

2009-11-25 Thread Johannes Dollinger
QuerySet.delete() currently sets the primary key and all nullable foreign keys (to deleted objects) of instances passed to signal handlers to None. No cache is updated. Model.delete() will do the same, but as these instances are collected by traversing related object descriptors all reverse