From a9e379f0f1728c8b5feb1000617ab6d6186467de Mon Sep 17 00:00:00 2001 From: Horilla Date: Fri, 28 Feb 2025 19:03:19 +0530 Subject: [PATCH] [ADD] HORILLA VIEWS: Added default visible columns feature --- horilla_views/generic/cbv/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/horilla_views/generic/cbv/views.py b/horilla_views/generic/cbv/views.py index a0030bcef..76d963f74 100644 --- a/horilla_views/generic/cbv/views.py +++ b/horilla_views/generic/cbv/views.py @@ -100,6 +100,7 @@ class HorillaListView(ListView): verbose_name: str = "" bulk_update_fields: list = [] bulk_template: str = "generic/bulk_form.html" + records_count_in_tab: bool = True header_attrs: dict = {} @@ -197,6 +198,7 @@ class HorillaListView(ListView): f""" @@ -321,6 +323,7 @@ class HorillaListView(ListView): context["model_name"] = self.verbose_name context["export_fields"] = self.export_fields context["custom_empty_template"] = self.custom_empty_template + context["records_count_in_tab"] = self.records_count_in_tab referrer = self.request.GET.get("referrer", "") if referrer: # Remove the protocol and domain part