#13513: _collect_sub_objects() does not take the database into the account
------------------------------------------+---------------------------------
 Reporter:  gavoja                        |       Owner:  nobody    
   Status:  new                           |   Milestone:            
Component:  Database layer (models, ORM)  |     Version:  SVN       
 Keywords:                                |       Stage:  Unreviewed
Has_patch:  1                             |  
------------------------------------------+---------------------------------
 The implementation of {{{delete()}}} seem to be designed to remove all the
 related objects from the database that was passed via using argument, as
 the line below states:

 {{{delete_objects(seen_objs, using)}}}

 The only problem is that the related object collection that takes place
 befor this call, does not take the database into the account. The proposed
 patch solves this problem.
 I also found a couple occurences of direct _collect_sub_objects() call
 outside the {{{base.py}}} which I haven't check tho, but the patch should
 be backward compatible.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13513>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" 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-updates?hl=en.

Reply via email to