Pass the pagination to the right place

This commit is contained in:
Mark Veidemanis 2022-08-10 20:45:55 +01:00
parent 8a165fd44d
commit fa11be741a
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
2 changed files with 1 additions and 2 deletions

View File

@ -157,7 +157,7 @@ def drilldown_search(request, return_context=False, template=None):
class DrilldownTableView(SingleTableView): class DrilldownTableView(SingleTableView):
table_class = DrilldownTable table_class = DrilldownTable
template_name = "ui/drilldown/table_results.html" template_name = "ui/drilldown/table_results.html"
paginate_by = 5 paginate_by = settings.DRILLDOWN_RESULTS_PER_PAGE
def get_queryset(self, request, **kwargs): def get_queryset(self, request, **kwargs):
context = drilldown_search(request, return_context=True) context = drilldown_search(request, return_context=True)

View File

@ -39,4 +39,3 @@ class DrilldownTable(Table):
num_users = Column() num_users = Column()
template_name = "ui/drilldown/table_results.html" template_name = "ui/drilldown/table_results.html"
paginate_by = settings.DRILLDOWN_RESULTS_PER_PAGE paginate_by = settings.DRILLDOWN_RESULTS_PER_PAGE
row_attrs = "is-primary"