Changes between Version 3 and Version 4 of Ticket #34067


Ignore:
Timestamp:
Oct 1, 2022, 7:09:03 AM (19 months ago)
Author:
Hristo Trendafilov
Comment:

Replying to Mariusz Felisiak:

Thanks for the report, however Paginator works for me. I'm also not sure why you're using _get_page() which is a private undocumented API. I don't think you've explained the issue in enough detail to confirm a bug in Django. Please reopen the ticket if you can debug your issue and provide details about why and where Django is at fault. If you're having trouble in debugging, see TicketClosingReasons/UseSupportChannels for ways to get help.

I don't use _get_page(), I have just added a breakpoint inside it so that I could trace what is populated inside of it since it is what generates the Page object after all. It is clear that args that Page object is called with are different than expected. What more details do you need me to provide? I could debug and replicate that issue every time. It is clearly visible from the screenshot that I have provided that slicing gives a different result than expected and is also skipping data which is happening in a production environment.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34067 – Description

    v3 v4  
    6464But in the args of {{{Paginator._get_page}}} the queryset is totally different than expected / should be a slice from the first six elements of {{{Paginator.object_list}}} /
    6565
    66 I have added a breakpoint like so [[Image(https://imgur.com/SdaQUt6)]]. I do not use the method itself, just stopped the execution to check what data the `Page` class itself is called with.
    67 
     66I have tried to add a breakpoint like so [[Image(https://imgur.com/SdaQUt6)]]
    6867Then I get this result [[Image(https://imgur.com/5zzLNV0)]].
    6968
Back to Top