On Wed, Feb 22, 2012 at 02:04:37PM -0800, Matt Schinckel wrote:
The other option, which should work in your case:

   expcodes = ['...', '...']

Result.objects.filter(analysis__experiment__experiment_code__in=expcodes)

Q objects are great, but not always needed.

I agree that this is the better solution since the Q objects are all testing the same field.

/me not seeing the forest through the trees

--
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.

Reply via email to