I am trying to build the search for a Django site I am building, and in that search, I am searching in 3 different models. And to get pagination on the search result list, I
This recursive function concatenates array of querysets into one queryset.
def merge_query(ar): if len(ar) ==0: return [ar] while len(ar)>1: tmp=ar[0] | ar[1] ar[0]=tmp ar.pop(1) return ar