Archive for August 13th, 2009

For multi-select boxes where you have a list of things you want to filter on, and you want the queryset returned to be an OR’d set. qset = Q(mode__exact=modes[0]) if len(modes) > 1: for mode in modes[1:]: qset = qset | Q(mode__exact=mode) r = Responses.objects.filter(qset) Now, I need to figure out how to do this […]


Subscribe to Feed

Categories

Calendar

August 2009
M T W T F S S
« Jul   Sep »
 12
3456789
10111213141516
17181920212223
24252627282930
31