13 Aug
Posted by Elf Sternberg as Uncategorized
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:]: [...]
Elf Sternberg is proudly powered by WordPress - BloggingPro theme by: Design Disease
Website analytics