From fa11be741a23f6c7f1878a952460e8b05990f203 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 10 Aug 2022 20:45:55 +0100 Subject: [PATCH] Pass the pagination to the right place --- core/views/ui/drilldown.py | 2 +- core/views/ui/tables.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/views/ui/drilldown.py b/core/views/ui/drilldown.py index f2c7451..e1882ba 100644 --- a/core/views/ui/drilldown.py +++ b/core/views/ui/drilldown.py @@ -157,7 +157,7 @@ def drilldown_search(request, return_context=False, template=None): class DrilldownTableView(SingleTableView): table_class = DrilldownTable template_name = "ui/drilldown/table_results.html" - paginate_by = 5 + paginate_by = settings.DRILLDOWN_RESULTS_PER_PAGE def get_queryset(self, request, **kwargs): context = drilldown_search(request, return_context=True) diff --git a/core/views/ui/tables.py b/core/views/ui/tables.py index e9a2861..6db96a8 100644 --- a/core/views/ui/tables.py +++ b/core/views/ui/tables.py @@ -39,4 +39,3 @@ class DrilldownTable(Table): num_users = Column() template_name = "ui/drilldown/table_results.html" paginate_by = settings.DRILLDOWN_RESULTS_PER_PAGE - row_attrs = "is-primary"