Hi guys.

I'm here with a problem that does not quite know how to solve.
I have this query:
result = json.dumps([a.get_json() for a in 
Player.objects.filter(name=namepost)])

But now I want to return the result with paging, and do not really know how 
to do ... I've been seeing in the documentation to use the Paginator.

But for example when I do this
        p = Paginator(result, 2)
        print p.count

Gives 1609 ... and the result of the query is 3 records.

Someone can help me?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b2cb773f-f8f4-43e9-ab02-0abd4e391171%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to