tickets_full: 3391

This data as json

id created changetime last_pulled_from_trac stage status component type severity version resolution summary description owner reporter keywords easy has_patch needs_better_patch needs_tests needs_docs ui_ux
3391 2007-01-29 17:09:42 2007-02-02 16:18:01 2019-06-24 00:51:21.845259 Design decision needed closed Generic views     master duplicate [patch] django.views.generic.list_detail.object_list - add context variables on pagination 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 }} }}} jacob Max Derkachev <mderk@yandex.ru>   0 1 0 0 0 0
Powered by Datasette · Query took 1.947ms