Change default icon for accounts

This commit is contained in:
Edgar P. Burkhart 2022-12-29 21:06:23 +01:00
parent 0e0b9fc927
commit b9e3ee059e
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 23 additions and 1 deletions

View file

@ -0,0 +1,20 @@
# Generated by Django 4.1.4 on 2022-12-29 20:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("main", "0013_account_snapshot_account_transaction_account"),
]
operations = [
migrations.AlterField(
model_name="account",
name="icon",
field=models.CharField(
default="building-columns", max_length=64, verbose_name="Icône"
),
),
]

View file

@ -34,7 +34,9 @@ class CustomModel(UserModel):
class Account(CustomModel):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
name = models.CharField(max_length=64, default=_("Account"), verbose_name=_("Name"))
icon = models.CharField(max_length=64, default="folder", verbose_name=_("Icon"))
icon = models.CharField(
max_length=64, default="building-columns", verbose_name=_("Icon")
)
def __str__(self):
return self.name