Hi,

We're implementing a feature where we need to access all the dependent objects 
for a given set of objects -- much like the Admin's deletion does. I note that 
we are not the first with this need, and I bring the SO question[1] as 
evidence. As you can see in that question, it turns out that already in 
Django, there is more than one such collector -- the one[2] used in delete() 
is not exactly suitable for use in the Admin[3].

Shouldn't we make the collector class -- or, at least, some API to achieve the 
same goal -- public?

Shai

[1]http://stackoverflow.com/questions/12158714/
[2]https://github.com/django/django/blob/c339a5a6/django/db/models/deletion.py#L64
 
[3]https://github.com/django/django/blob/f6681393/django/contrib/admin/utils.py#L176

Reply via email to