PythonistL says: > so I use paginator like this: Ahh, that makes it clearer. The only way to get complex keyword queries is by using the complex/Q syntax.
> But how can I rewrite this
complex=(Q(Subject__contains=SubjectS) |
Q(OfferType__contains=OfferTypeS))
You should be able to type the complex query directly into the
dictionary, like so:
paginator=ObjectPaginator(tradeleads,{'complex':(Q(Subject__contains=SubjectS)
|
Q(OfferType__contains=OfferTypeS)),'order_by'
:['-PostedDate']},5)
-rob

