﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
3391	[patch] django.views.generic.list_detail.object_list - add context variables on pagination	Max Derkachev <mderk@…>	Jacob	"The patch is for django.views.generic.list_detail.object_list and the docs.
It adds the following variables to context, when the paginated object_list is required:
1. pages_list - the list of page numbers;
2. page_start - the number of the first item on the page;
3. page_end - the number of the last item on the page.

They are obviously missing, and are very useful when one need to construct pagination control like this:

{{{
PREV 1 2 3 4 5 6 7 NEXT
showing 10-20 of 100 items
}}}

the template source will be like this:

{{{
<a href=""#"">PREV</a>
{% for page_num in pages_list %}
{{ page_num }}
{% endfor %}
<a href=""#"">NEXT</a>
showing {{ page_start }}-{{ page_end }} of {{ hits }}
}}}

"		closed	Generic views	dev		duplicate		frankie@…	Design decision needed	1	0	0	0	0	0
