[ADD] BASE: Added a new function to fetch data without any filteration

This commit is contained in:
Horilla
2024-12-03 14:10:21 +05:30
parent f7a0313894
commit b3dc98819c

View File

@@ -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