﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
13513	_collect_sub_objects() does not take the database into the account	gavoja	nobody	"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."		closed	Database layer (models, ORM)	dev		fixed			Accepted	1	0	0	0	0	0
