diff --git a/app/apps/users/forms.py b/app/apps/users/forms.py
index 71e1b5f..a2b06e9 100644
--- a/app/apps/users/forms.py
+++ b/app/apps/users/forms.py
@@ -120,8 +120,8 @@ class UserSettingsForm(forms.ModelForm):
default_account = forms.ModelChoiceField(
queryset=Account.objects.filter(
- is_archived=False,
- ),
+ is_archived=False,
+ ),
label=_("Default Account"),
widget=TomSelect(clear_button=False, group_by="group"),
required=False,
@@ -160,9 +160,9 @@ class UserSettingsForm(forms.ModelForm):
"date_format",
"datetime_format",
"number_format",
- "default_account",
HTML('
'),
"start_page",
+ "default_account",
HTML('
'),
"volume",
FormActions(
@@ -177,10 +177,6 @@ class UserSettingsForm(forms.ModelForm):
"translation_link": 'translations.herculino.com'
}
- self.fields["default_account"].help_text = _(
- "Selects the account by default when creating new transactions"
- )
-
class UserUpdateForm(forms.ModelForm):
new_password1 = forms.CharField(
diff --git a/app/apps/users/migrations/0025_alter_usersettings_default_account.py b/app/apps/users/migrations/0025_alter_usersettings_default_account.py
new file mode 100644
index 0000000..d10bef2
--- /dev/null
+++ b/app/apps/users/migrations/0025_alter_usersettings_default_account.py
@@ -0,0 +1,20 @@
+# Generated by Django 5.2.9 on 2026-02-16 01:32
+
+import django.db.models.deletion
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('accounts', '0016_account_untracked_by'),
+ ('users', '0024_usersettings_default_account'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='usersettings',
+ name='default_account',
+ field=models.ForeignKey(blank=True, help_text='Selects the account by default when creating new transactions', null=True, on_delete=django.db.models.deletion.SET_NULL, to='accounts.account', verbose_name='Default account'),
+ ),
+ ]
diff --git a/app/apps/users/models.py b/app/apps/users/models.py
index aec7919..d1e4b32 100644
--- a/app/apps/users/models.py
+++ b/app/apps/users/models.py
@@ -511,8 +511,10 @@ class UserSettings(models.Model):
verbose_name=_("Start page"),
)
default_account = models.ForeignKey(
- "accounts.Account", on_delete=models.SET_NULL,
+ "accounts.Account",
+ on_delete=models.SET_NULL,
verbose_name=_("Default account"),
+ help_text=_("Selects the account by default when creating new transactions"),
blank=True,
null=True,
)