From b2b33e53d56581b4fa4cf1736059e54478e67483 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 30 Sep 2024 13:46:58 +0530 Subject: [PATCH] add else condition --- fyle_accounting_mappings/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fyle_accounting_mappings/views.py b/fyle_accounting_mappings/views.py index ab802ff..375450f 100644 --- a/fyle_accounting_mappings/views.py +++ b/fyle_accounting_mappings/views.py @@ -370,6 +370,8 @@ def get_queryset(self): param = Q(categorymapping__source_category_id__in=source_categories) elif mapped is False: param = ~Q(categorymapping__source_category_id__in=source_categories) + else: + return ExpenseAttribute.objects.filter(base_filters).order_by('value') # Combine the base filters with the param (if any) final_filter = base_filters