mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-06-12 17:34:31 +02:00
feat: add option to archive accounts
This commit is contained in:
@@ -60,7 +60,14 @@ class AccountForm(forms.ModelForm):
|
||||
|
||||
class Meta:
|
||||
model = Account
|
||||
fields = ["name", "group", "currency", "exchange_currency", "is_asset"]
|
||||
fields = [
|
||||
"name",
|
||||
"group",
|
||||
"currency",
|
||||
"exchange_currency",
|
||||
"is_asset",
|
||||
"is_archived",
|
||||
]
|
||||
widgets = {
|
||||
"currency": TomSelect(),
|
||||
"exchange_currency": TomSelect(),
|
||||
@@ -76,6 +83,7 @@ class AccountForm(forms.ModelForm):
|
||||
"name",
|
||||
"group",
|
||||
Switch("is_asset"),
|
||||
Switch("is_archived"),
|
||||
"currency",
|
||||
"exchange_currency",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user