Uhmmm, thank you a lot. That was what I was looking for! Sorry for wasting your time. One last question, does this double-underscore notation work at my html template? Because after filtering I will want to display the information of the different models at one row of my table.
On Friday, March 16, 2012 12:09:44 AM UTC-3, Shawn Milochik wrote: > > You can certainly use Q objects to query across models, just as you can > in a normal QuerySet, by using the double-underscore notation. > > > https://docs.djangoproject.com/en/1.3/topics/db/queries/#lookups-that-span-relationships > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/sXps3T_6bDEJ. 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.