Hi,
Thanks for the reply. I am using an old version of Django so maybe they got
rid of it.
What I have found out is that the object is found if I explicitly define a
through table.
ie:
zzz = models.ManyToManyField('xxx', through = 'zzz.xxx_linked', related_name
= 'xxx_of_zzz', blank = Tru
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.k
2 matches
Mail list logo