Rob,
Thank you for your reply and I am sorry for my confusing post.I will
explain my question again.
I use paginator. In doc about the paginator I learned that I must
> Feed it a module (an object with
>     get_count() and get_list() methods) and a dictionary of arguments to
>     be passed to those methods, plus the number of objects you want on
>     each page. Then read the hits and pages properties to see how many
>     pages it involves. Call get_page with a page number (starting at 0) to
>     get back a list of objects for that page.

so I use paginator   like this:
paginator=ObjectPaginator(tradeleads,{'Subject__contains':SubjectS,'OfferType__contains':OfferTypeS,'order_by'
:['-PostedDate']},5)

(where tradleads is my table.)
It works fine for AND (and only for AND) lookup that is

 'Subject__contains'=SubjectS AND 'OfferType__contains'=OfferTypeS

but I would need OR lookup , that is
'Subject__contains'=SubjectS  OR 'OfferType__contains'=OfferTypeS

in a form suitable for paginator.
Any idea how to do that?
Thanks
Regards,
Lad.

Reply via email to