colelloa / django-pagination

Automatically exported from code.google.com/p/django-pagination
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

model based pagination and default page #51

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Sometimes not all models need a quantity-pagination, say: from 0-9, from 10
to 19, etc ...
What about dated pagination?, for example, objects with a year timestamp
from 200 to 2001, from 2002 to 2003, etc.
So, it would be nice to define something like an API where you can redefine
the pagination and the default page based on the model beeing paginated.
Cheers!

Original issue reported on code.google.com by apacheco...@gmail.com on 23 Jul 2009 at 2:13

GoogleCodeExporter commented 8 years ago
I'd be happy with just the option of specifying a template in the {% paginate 
%} tag. The default template could still be pagination/pagination.html, but 
there could be the option of specifying a different template when necessary by 
doing something like {% paginate 'pagination/pagination2.html' %}.

Original comment by kont...@monikasulik.net on 26 Jul 2010 at 5:50