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 o2o field caches  
will be updated.

Is this an accidental side effect or desired behavior?

I'm asking because my patch for #7539 currently does not update o2o  
caches. But that could be fixed - if really necessary.

Relevant thread: 
http://groups.google.com/group/django-developers/browse_thread/thread/6e88b6315f489403/

__
Johannes

--

You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.


Reply via email to