Solved.
Instead of
 paginator=ObjectPaginator('tradeleads',{'id__gt':1},2)

i had to use  
paginator=ObjectPaginator(tradeleads,{'id__gt':1},2)

Reply via email to