|Reported by:||trbs||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I've created a TemplateTag for using the new Paginator class directly from a template.
It might be nice to add this to the documentation of Paginator or maybe even the django code page.
Ofcourse most people will use the paginator from a view or a generic view, but there are also some
quite good use cases for paginating something directly in a template. For instance a related list or
a generic list of things which is not the main object_list of the page.
The tag and usage examples are at: http://www.djangosnippets.org/snippets/673/
It currently lacks support for 'first' and 'last' keywords on the page parameter. I'll add it soon.