jieter / django-tables2

django-tables2 - An app for creating HTML tables
https://django-tables2.readthedocs.io/en/latest/
Other
1.86k stars 426 forks source link

Duplicate count() on class based views. #910

Open mfvictor opened 1 year ago

mfvictor commented 1 year ago

paginate_by is causing duplicate count() calls. This can be reproduced with the example project by setting paginate_by in FilteredPersonListView.

image

Setting per_page on the table itself instead only calls count() once, which is the expected behaviour.