Fixed some minor bugs and update the settings system #14
@ -30,7 +30,7 @@ class ExpenseForm(forms.ModelForm):
|
|||||||
]
|
]
|
||||||
widgets = {
|
widgets = {
|
||||||
"date": forms.DateInput(format="%Y-%m-%d", attrs={"type": "date"}),
|
"date": forms.DateInput(format="%Y-%m-%d", attrs={"type": "date"}),
|
||||||
"widget": forms.CheckboxSelectMultiple(),
|
"tags": forms.CheckboxSelectMultiple(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -95,6 +95,8 @@ class CategoryForm(forms.ModelForm):
|
|||||||
self.fields["parent"].queryset = Category.objects.filter(
|
self.fields["parent"].queryset = Category.objects.filter(
|
||||||
owner=user,
|
owner=user,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class GoalForm(forms.ModelForm):
|
class GoalForm(forms.ModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Goal
|
model = Goal
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user