Re: Question: Regarding Page class

2021-11-22 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi, could you give an example of what you're talking about? As far as I can see, Paginator *never* converts its arguments to a list: In [8]: paginator = Paginator(Game.objects.order_by('id'), 2) In [9]: paginator.get_page(1) Out[9]: In [10]: paginator.get_page(1).object_list Out[10]: , ]> Int

Question: Regarding Page class

2021-11-20 Thread Gullapalli Saisurya Revanth
Hi, While working with pagination I have observed that after splitting a queryset into pages. Each page that is initially of type queryset is converted to list before returning. Is there any reason why it's converted to list? I see that we can still get a queryset by slicing it which we could