Thanks for this snippet! Great trick.
Bruno Alla
1

The original implementation of _get_count of Paginator does it the same way. We kept everything same, just changed the method to actually get the count from the Database.

Personally, I generally like to make the least number of changes possible to get the work done. More changes equal to more chances for bugs or regressions, unless of course the changes are justified.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.