On Thu, Jan 13, 2011 at 6:40 PM, ranadave <ranad...@gmail.com> wrote: > I'm using Django version 1.1.2. > > I'm trying to find all objects that reference object A. > Object B has a ManyToManyField to A. > Object C has the same, but it uses a defined through table. > > When I do: >> related_objs = CollectedObjects() >> A._collect_sub_objects(related_objs) >> classes = related_objs.keys() >> print classes > > I get C, but not B. > > Any ideas what's wrong? I'm guessing this is a bug, but would like to be > certain :)
I don't have any CollectedObjects function in my django installation, Could it be possible that this function has been deprectated? btw you could try to use object._meta.get_all_related_objects() function in order to get all the related objects. -- Marc -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.