I have a problem with generic.list_detail.object_list, a limiting
queryset, and pagination variables.

For some reason when I use the code below, results are restricted to
the sliced 100, but all the pagination variables show results as if the
slice wasn't there.

Example:

{{ pages }} = 12 (not the max 5)
{{ has_next }} will be true on page 5

Dictionary and URL Pattern:

info_dict = {
    'queryset': Test.objects.all().order_by('-id')[:100],
    'paginate_by': 20,
}

(r'^test/$', 'django.views.generic.list_detail.object_list',
info_dict),

Template:

{{ page }} - {{ pages }}

{% if has_next %}<a href="./?page={{ next }}">Next</a>{% endif %}


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to