feat(insights:category-explorer): allow for uncategorized totals

This commit is contained in:
Herculino Trotta
2025-02-18 20:45:07 -03:00
parent 635628e30e
commit 09e380a480
2 changed files with 5 additions and 4 deletions
+3
View File
@@ -9,6 +9,7 @@ from apps.common.widgets.datepicker import (
AirDatePickerInput,
)
from apps.transactions.models import TransactionCategory
from apps.common.widgets.tom_select import TomSelect
class SingleMonthForm(forms.Form):
@@ -115,7 +116,9 @@ class CategoryForm(forms.Form):
category = forms.ModelChoiceField(
required=False,
label=_("Category"),
empty_label=_("Uncategorized"),
queryset=TransactionCategory.objects.filter(active=True),
widget=TomSelect(clear_button=True),
)
def __init__(self, *args, **kwargs):