> Try this: > > x = [ {'id': 1, 'title': 'test1'}, {'id': 2, 'test2'} ] > if x: > d = x[0] > q = Q(id=d['id']) & Q(title=d['title']) > for d in x[1:]: > q = q | (Q(id=d['id']) & Q(title=d['title'])) > query = MyModel.objects.filter(q)
Hey, that makes sense. I do appreciate the speedy help! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---