I've done it intersecting the list of lists in pure python and then
calling the filter:
ml=[Persona.objects.filter(titulos__in=f).distinct() for f in
filtros]
tmp = {}
for l in ml:
for x in l:
z = tmp.get(x, [])
z.append(1)
On Mon, 2009-03-02 at 13:59 -0800, natx...@gmail.com wrote:
> I'm trying to make a complex dynamic filter. The first thing I've done
> is get dynamically a list of list of titles, something like this:
>
> [[, Educación>], []]
>
> and a way to add/remove list of titles to/from the general list (
2 matches
Mail list logo