I'm trying to define a bunch of queries that take advantage of __icontains and other filter parameters. Its easy to do this statically - res = Foo.objects.filter(title__icontains=something, desc__icontains=something_else)
But I have many queries and want to create something like this: query1 = [('title__icontains', something), ('desc__icontains',something_else)] query2 = [(desc__icontains', anotherthing)] queries = [query1, query2] for q in queries: res = Foo.objects.filter(q) Any suggestions on how to go about this? --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---