On Wed, Jul 6, 2011 at 2:26 AM, Marc Aymerich <[email protected]> wrote:
> Say there are 3 Users in an org : A, B and C with each creating 3,4,5 items > respectively, and 'A' is the current user; then i need a query which returns > all these items(i.e, 12 items) when i supply A.. > > Item.objects.filter(employees__org=A.org) > This works¿? > I dont think this would work; Items doesnt have an FK for Emps. -V -- You received this message because you are subscribed to the Google Groups "Django users" 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-users?hl=en.

