Re: inconsistency between remove() and clear()?

2009-03-24 Thread Margie
Ok, yes, this all makes sense now. Thanks for the explanation! Margie On Mar 24, 3:32 am, Russell Keith-Magee wrote: > On Tue, Mar 24, 2009 at 6:10 PM, Thomas Guettler wrote: > > > Hi, > > > book2.publisher is an attribute which was created before

Re: inconsistency between remove() and clear()?

2009-03-24 Thread Russell Keith-Magee
On Tue, Mar 24, 2009 at 6:10 PM, Thomas Guettler wrote: > > Hi, > > book2.publisher is an attribute which was created before you deleted it. > If you get book2 again from Book.objects, this attribute would not exist > anymore. > > I have not looked at the underlaying django

Re: inconsistency between remove() and clear()?

2009-03-24 Thread Thomas Guettler
this, since it does not have a reference to all affected objects. Thomas Margie schrieb: > It seems to me there is an inconsistency between clear() and remove > (). After a remove() I find that the related object set no longer > contains the specified object (as expected), and the

inconsistency between remove() and clear()?

2009-03-23 Thread Margie
It seems to me there is an inconsistency between clear() and remove (). After a remove() I find that the related object set no longer contains the specified object (as expected), and the specified object also no longer points to the related set (this also is what I'd expect). However