I have a problem with django.core.paginator.
I have a Page object who's .object_list is [], but at the same time
it's repr() states "Page 1 of 11".
How is that even possible?
Same with page 2, page 3 ,...
--
You received this message because you are subscribed to the Google Groups
"Django use
On Tuesday, 11 October 2011 17:55:07 UTC+1, ch3ka wrote:
>
> I have a problem with django.core.paginator.
>
> I have a Page object who's .object_list is [], but at the same time
> it's repr() states "Page 1 of 11".
>
> How is that even possible?
>
> Same with page 2, page 3 ,...
You'll have t
On Oct 12, 10:52 pm, Daniel Roseman wrote:
> You'll have to show some code. How are you creating the page object?
hotels =
Hotel.objects.select_related().filter(is_deleted=False).filter(...)...
paginator = Paginator(hotels[:200], items_per_page)
try: page = int(request.GET.get('page', '1'))
exce
3 matches
Mail list logo