Re: saving queries

2007-05-21 Thread FrankW
Oops - I didn't read far enough in the DB API! Q objects do exactly 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

saving queries

2007-05-21 Thread FrankW
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: quer