From b3dc98819c280073c1c98b724c50cfecc959a55c Mon Sep 17 00:00:00 2001 From: Horilla Date: Tue, 3 Dec 2024 14:10:21 +0530 Subject: [PATCH] [ADD] BASE: Added a new function to fetch data without any filteration --- base/horilla_company_manager.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/base/horilla_company_manager.py b/base/horilla_company_manager.py index b3734bcb8..af3b1567c 100644 --- a/base/horilla_company_manager.py +++ b/base/horilla_company_manager.py @@ -103,3 +103,10 @@ class HorillaCompanyManager(models.Manager): queryset = super().filter(*args, **kwargs) setattr(_thread_locals, "queryset_filter", queryset) return queryset + + def get_all(self): + """ + Fetch all datas from a model without applying any company filter. + """ + queryset = super().get_queryset() + return queryset # No filtering applied