Re: Paginating ListViews in CBV

2011-01-04 Thread Jacob Kaplan-Moss
On Tue, Jan 4, 2011 at 9:37 AM, Andrew Godwin wrote: > So, I've been working with the new generic Class Based Views for the > last few days, and come across a slight inconsistency in the ListView. > > If you specify a value for paginate_by, ListView happily returns a > "page" object into the conte

Paginating ListViews in CBV

2011-01-04 Thread Andrew Godwin
So, I've been working with the new generic Class Based Views for the last few days, and come across a slight inconsistency in the ListView. If you specify a value for paginate_by, ListView happily returns a "page" object into the context. However, if there is only one page, it decides against this